Skip to main content

Questions tagged [craft5]

Questions pertaining to Craft CMS 5.

Filter by
Sorted by
Tagged with
4 votes
3 answers
511 views

Plugin "Typed Link Field" -> Alternative for Craft 5?

https://plugins.craftcms.com/typedlinkfield At first: This plugin was for free and I would like to say "Thank you for you work!" ... thanks Sebastian! But with a look to 33,291 active ...
Marc 's user avatar
  • 194
2 votes
1 answer
49 views

Get all revisions of an entry on front end / with twig

I'm basically trying to get what has been answered for this questions. This code doesn't seem to work any longer since it has been solved about 8 years ago. Is there a way to get a list of all the ...
obs's user avatar
  • 551
2 votes
1 answer
27 views

Can I empty the storage folder when migrating a Craft CMS site?

I am moving a Craft CMS to new webhost and followed this instruction. I read in another Stackoverflow post and also on this page that the /storage folder mainly contains cached, temporary files. Is it ...
flip's user avatar
  • 149
2 votes
1 answer
136 views

Craft 5, CKEditor accessing parent entry from partial

Craft 5, CKEditor accessing parent entry from partial Is it possible to access the parent entry from a partial template being rendered from an embedded entry in a CKEditor field? For example, consider ...
Jason's user avatar
  • 348
2 votes
2 answers
125 views

Upgrade to 5.x failed

I followed the upgrade instructions. My current version is 4.8.1. When I run composer update, I get the following error: I added the following code to composer.json because of another issue: "...
flip's user avatar
  • 149
2 votes
1 answer
74 views

Craft CMS 5: Can I query entries and matrix-fields together?

If matrix fields become entries in Craft 5, is the following scenario possible, robust and efficient? Channel "speakers" Channel "solo events": with an entryfield for selecting ...
buckdanny's user avatar
  • 207
1 vote
1 answer
44 views

How to run the queue via CronJob?

I am Using Craft CMS 5.x and the Formie plugin. Form submissions are entered into the Craft CMS queue. When I enter the control panel, the queue runs and notification mails for form submissions are ...
flip's user avatar
  • 149
1 vote
1 answer
30 views

Not able to query by id

I don't get, how i should query for an entry by ID in Craft CMS 5. I have an entry in my "Article Comments" section: The Section contains the entry type "Comments Content". The ...
smaniren's user avatar
1 vote
1 answer
20 views

getBodyParam('email') is empty on live server

Trying to debug a form issue which is only happening on a live server (it works on our local environments). The form makes a fetch request (using Javascript) to a route in routes.php which goes to a ...
Jaytrix's user avatar
  • 337
1 vote
1 answer
37 views

Setup Craft CMS 5 webroot to htdocs

For a Craft CMS 5 project installed with ddev, how can we make the webroot folder become /htdocs instead of /web? Is this something to be reconfigured after installation, or does it need to be done ...
Romain P.'s user avatar
  • 1,852
1 vote
1 answer
86 views

Craft 5 Matrix Field have URL?

I have a staff Structure Section with the intro page (Level 1) and individual staff members at (Level 2) as each staff member has their own page /staff/joe-bloggs. I was wondering if it's possible to ...
Martin's user avatar
  • 21
1 vote
1 answer
37 views

HTTP 503 – error found in newly installed craft cms

I installed craft cms 5 and got ``HTTP 503 – Service Unavailable – craft\web\ServiceUnavailableHttpException```error. This is my .env configuration. How to fix this # Read about configuration, here: # ...
user15861's user avatar
1 vote
1 answer
127 views

How to add the option for a link to select a target, e.g. open link in new window? [CKEDITOR Plugin]

I want certain links on the website which I added in a CKEditor field to open in a new tab/window by adding the target attribute "_blank". By default, there is no option to select this ...
flip's user avatar
  • 149
1 vote
1 answer
47 views

Local Storage with Sprig

I have a changing sort dropdown using Sprig, works great. Though, I'd like to save this sort order to local storage and pass it as the default to my sprig component. What's the best way to do this? Is ...
JMKelley's user avatar
  • 1,416
1 vote
1 answer
23 views

How to lowercase the value of a variable used as default upload folder for assets?

The entry variable stores values such as S001-LU, S009-SH, etc. I use this variable as default upload folder for assets. I would like to lowercase the value from the field, i.e. s001-lu, s009-sh, etc. ...
flip's user avatar
  • 149
1 vote
1 answer
103 views

Upgrade from 4 to 5 error

When running the php craft up command as one of the last steps for the upgrade I get the following error. *** applying m230511_215903_content_refactor Exception: A field layout element has a duplicate ...
Matthias's user avatar
  • 301
1 vote
1 answer
60 views

Craft5 -> CP: Field groups are gone?

Just wondering: https://craft5.ddev.site/admin/settings/fields -> there are no field groups anymore? That's a loss ... :(
Marc 's user avatar
  • 194
1 vote
2 answers
261 views

Redactor RTE -> what about Craft 5?

https://plugins.craftcms.com/redactor Redactor is still not available for Craft 5? If so, that's a major problem for my upgrade path to Craft 5. I know the CKEditor plugin, but that's not an option ...
Marc 's user avatar
  • 194
1 vote
1 answer
24 views

Problem with recursive macro descendants in craft 5

I'm trying to display my nested comments. I've created 7 test-comments: ID Parent ID Comment Descendants Count Level 785 N/A test 1 6 1 788 785 test 2 ...
smaniren's user avatar
1 vote
1 answer
57 views

CraftCMS S3 Plugin "Unable to write stream to..."

I've setup S3 for Craft plugin, setup the file system, put in the credentials. Fetched the bucket using the Control Panel (Refresh) option. (So it must have permissions to read) though when trying to ...
JMKelley's user avatar
  • 1,416
1 vote
1 answer
33 views

Behaviour of MySQL 5.7 on Craft 5

The recommended MySQL version for Craft 5 is 8.0.17+, but it appears to work with 5.7. How does this version (5.7) affect site construction and functionality? We understand that as long as it is not ...
shin_develop's user avatar
1 vote
1 answer
26 views

Select existing entries for a matrix-type field rather than creating new ones per entry

I have created different pages as entries. On each page I show a list of benefits of my company which are generally the same for each page but I would like to be able to customize the benefits for ...
flip's user avatar
  • 149
1 vote
1 answer
21 views

How to delete asset folders in CraftCMS backend?

I created some asset folders which are displayed in the backend and which I would like to remove. I manually removed the directory on the server. It is still shown in the backend. The options in the ...
flip's user avatar
  • 149
1 vote
1 answer
35 views

Craft5: Failure to create a passkey

I'm trying craft5 ,I'm seeing an error with passkey registration. When I try to save my passkey using FaceID on my iPhone, "Unable to load the data" pops up in cp. The passkey seemed to be ...
shin_develop's user avatar
0 votes
1 answer
146 views

Redactor no longer maintained

What is a recommended alternative to the redactor plugin? Or just use it anyway? Cheers, Joe
analog junkie's user avatar
0 votes
1 answer
10 views

Set Field Layout for User Groups

Is it possible to assign a field layout to user groups in Craft CMS 5? The UserGroup class does not have a setFieldLayout method. Is there another way to achieve this?
antdev's user avatar
  • 137
0 votes
0 answers
24 views

Craft 5 Update: Database Views for Content Table No Longer Functioning

I have a custom module on my Craft CMS site that uses a database view by joining the content table and user table. This view consolidates all user details into one place. However, with the Craft CMS 5 ...
PCS's user avatar
  • 1
0 votes
0 answers
26 views

Custom HTML tag removed from ckEditor5 on save

I've created a custom ckeditor5 plugin. The plugin adds a new button to ckeditor5 toolbar to add a custom HTML tag with some data. Switching between view and model in ckeditor works fine. But from ...
user3086053's user avatar
0 votes
0 answers
16 views

5.x - Matrix Frontend Form Submissions

Has anyone found a way to create matrix field submissions with a frontend form? The docs for 5.x mention this section hasn't been updated and that the functionality has changed drastically. Craft 5.x -...
Jared Budlong's user avatar
0 votes
1 answer
48 views

EVENT_REGISTER_SITE_URL_RULES not working

I have created a custom module and registered a route like this. EVENT::on( UrlManager::class, UrlManager::EVENT_REGISTER_SITE_URL_RULES, function (...
Matthias's user avatar
  • 301
0 votes
0 answers
30 views

Craft CMS 5 Headless live preview using nuxt not working

I'm not understanding how the preview mode exactly works trough graphql queries for Craft CMS headless. Using Craft CMS 5. From what I read, all I have to do is add the 'token' in the headers of the ...
mtsfrstd's user avatar
0 votes
0 answers
18 views

Filter GraphQL Response Based on Matrix Entry Type

In Craft 5, we now have a few Entry types with Matrix fields that can nest several other Entry types, or none. I'm struggling to work out a way to limit the returned results based on the content of ...
theAdhocracy's user avatar
0 votes
0 answers
31 views

How to clear conditional field values when hidden?

In Craft CMS 5, I have several conditional fields that display or hide based on the value of a Category field (single selection). Depending on the selected category, different fields appear: Date, ...
Romain P.'s user avatar
  • 1,852