All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

How to batch delete obsolete PDF files from site assets

I inherited a CraftCMS project and there are currently close to 1200 obseletes pdf documents, still present in the site assets. The documents are stored in an S3 Bucket. What is the best way to do ...
PatCraft's user avatar
0 votes
0 answers
16 views

Save field value After Complete Order

I am using Craft Commerce and want to edit the order after it has been completed by the customer. For this I am using the EVENT_AFTER_COMPLETE_ORDER event. Event::on( Order::class, ...
Matthias's user avatar
  • 181
0 votes
1 answer
18 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
0 votes
1 answer
17 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
0 votes
2 answers
15 views

ImageTransform Focal Point Cache Busting

I have a Question about image transform focal point behavior. Twig templating or with php. Getting the url of an asset with a transform $asset->getUrl('transformer') If i am understanding the ...
Leonardo's user avatar
  • 451
1 vote
1 answer
27 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
  • 105
1 vote
2 answers
23 views

Deleted User - can their content be recovered?

Unfortunately we have deleted the user account for an ex-member of staff and all the content that they had put on the website has disappeared. We aren't sure who deleted the account, we assume that ...
Peter-IW's user avatar
0 votes
0 answers
14 views

Issues uploading and transforming images

I'm running into issues when uploading images, both locally (DDEV) and in staging environments. Attempting to upload images to staging gives a generic: Upload failed for “example-image.jpg" ...
Seth Warburton's user avatar
0 votes
0 answers
42 views

OrderBy custom field (Date) with multiple sections not working

I can't query and sort multiple sections in Craft 5: using this code: {% set entries = craft.entries() .section(['veranstaltungsgruppen', 'veranstaltungen']) .datum('< ' ~ heute ) .orderBy('...
buckdanny's user avatar
  • 185
0 votes
1 answer
17 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
  • 105
0 votes
1 answer
40 views

Problems with search index using MySQL 8 and CraftCMS 4.8.0

I have been testing our site using MySQL 8.0.36, and all seems great other than the search index seems to be not working as expected as any entry search with a string over 10 characters in length ...
Watsonian's user avatar
1 vote
1 answer
30 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,396
1 vote
1 answer
20 views

Error when calling renderPdfForOrder() in Module

The error I'm receiving is: Call to a member function getRenderLanguage() on null My Code (Edit - simplified): $mergeService = new Merger(); $batchFileName = 'VAT-' . $country . ( $date ? '-' . $...
cherrykoda's user avatar
  • 1,059
0 votes
0 answers
16 views

Add to cart via Ajax (sometimes) results in abandoned carts and invalid CSRF

In Craft Commerce, I am using the Blitz Cache plugin. My "add to cart"-button uses ajax to add the product to the cart. This is the twig-code for the form: <form method="post" ...
nitech's user avatar
  • 679
0 votes
0 answers
14 views

URL passthrough rewrite failing when using actionInput

We are experiencing some issues with form submissions on websites that are using action inputs. If a visitor denies analytics_storage via a cookie consent plug-in. Google Tagmanager will start using ...
Dirkv01's user avatar
  • 13
0 votes
1 answer
19 views

Internal Server Error on Save / Dashboard

A client's site is producing Internal Server Errors randomly in the Craft backend (3.7.53.1). The Dashboard produces an error. Saving certain entries produces an error (especially when enabling ...
Document Services's user avatar
0 votes
0 answers
16 views

Adding an entry to an Entry element duplicates it

I have a site where the database is is some weird state which I would like to fix, but I'm not sure where to start. I have a channel of entries, and some of these entries (not all of them) suffer from ...
jishi's user avatar
  • 263
1 vote
1 answer
22 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
  • 105
1 vote
1 answer
16 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
  • 105
1 vote
1 answer
42 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
  • 181
0 votes
0 answers
13 views

PaymentMethods of type 'ideal' cannot be saved to customers

I working on a craft commerce project with subscriptions. I have problems with saving a paymentsource of the type "ideal" and "bancontact" with stripe. Creditcards and sepa ...
Maarten Heideman's user avatar
2 votes
1 answer
35 views

Is it possible to silo Users and their Content absolutely by site?

We have multiple sites defined in Craft and we want content editors to only have visibility of things that are relevant to the one site they've been assigned to. I've set this up using a User Group ...
Karl Bishop's user avatar
1 vote
1 answer
30 views

Add number variable to template with prefix, suffix and currency

I have added a number field with prefix, suffix and currency symbol: How can I add a variable to a template which shows the number with prefix, suffix and currency? I tried the following which didn't ...
flip's user avatar
  • 105
0 votes
0 answers
16 views

Duplicated queries when using relations and assets

I have this setup: {% for entry in craft.entries().section('mySection').with(['relation.image']).all() {% set relation = entry.relation.one() %} {% set image = relation.image.one() %} {{ entry....
supazu's user avatar
  • 526
1 vote
1 answer
39 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
  • 160
1 vote
1 answer
33 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
2 votes
1 answer
21 views

dateUpdated for different sites

I need to be able to distinguish when entries for multilingual websites were last updated. If I use entry -> dateUpdated, it gives me the same date for the English and German version of the entry, ...
Vio's user avatar
  • 21
1 vote
1 answer
45 views

CKEditor 4: Open Link in new Tab

Craft 5 // CKEditor 4 I'm really missing an option to open a link in a new Tab. an external link should open in a new tab by default sometimes the redacteur needs to have the option to open an entry ...
Marc 's user avatar
  • 160
2 votes
1 answer
49 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
1 vote
2 answers
32 views

Can I search multiple element types in one query?

Yup, this is a repeat of a question from 7 years ago. The github discussion seems to have died out 2 years ago. I can't do weird array merging due to pagination which accepts an element query. So it ...
Amanda Lutz's user avatar
0 votes
0 answers
14 views

Query relatedTo category or empty field

I'm not able to query a list of items relatet to a category or if category field is empty in the same query. I have to make two and merge them. Is it not possible? This works: {# Fetch entries related ...
Tibbe's user avatar
  • 111
1 vote
0 answers
17 views

Nginx Config issue

I keep getting the error message below and using docker compose up open() "/etc/nginx/craftcms/security.conf" failed (2: No such file or directory) in /etc/nginx/conf.d/default.conf:16 ...
user15825's user avatar
0 votes
0 answers
10 views

How can I modify the image item in Redactor to accept queryparams at the end of the src link programattically?

With my current setup, Craft is pointing images to a hosting service, and images loaded into redactor are setup to load images with that URL. The service allows you to pass arguments at the end of the ...
Jennifer Prieto-Ayres's user avatar
0 votes
1 answer
62 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
0 answers
17 views

Image Transformation causes error 503

I have too many images on a overview page, and it kills the server which creates a error 503. I converted all source images to less than 1MB, but it still crashes the server. (Using Imager X on craft ...
KSPR's user avatar
  • 3,786
1 vote
1 answer
22 views

Create and display PopUps for Craft (+Commerce) Frontend

Is there already a solution or plugin that can be used to create/maintain popups in the control panel, which are then displayed to the user in the frontend? For example, I would like to create a pop-...
MaxBay's user avatar
  • 11
0 votes
0 answers
33 views
+50

Save provisional changes in custom controller

I have added a button to the entry edit page, which runs a custom controller I user to copy data from field A into field B in a particular format. Here's a condensed version of that: public function ...
supazu's user avatar
  • 526
2 votes
0 answers
47 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
  • 185
3 votes
2 answers
71 views

Unable to find custom template when using a console controller inside a module

I'm creating my first module. Inside this module, I check a few entries for some conditions, and if all conditions are met, I want to send out a personal email. Everything worked, but I wanted to ...
Arno Ramon's user avatar
2 votes
2 answers
48 views

Reference SVG file in CSS of custom plugin

I have built a custom plugin and have a css file that is being injected as an assetbundle. This works great but when I want to set a background image (SVG in this case) I'm not sure what the path ...
Matthias's user avatar
  • 181
1 vote
1 answer
33 views

Eager-loading content and merging queries

sorry if the following question is too basic, but I've spent quite some time digging now so I decided to reach out for help. Is 250 DB queries too many? I have a Neo field "modules" that can ...
Roman Sobkuliak's user avatar
0 votes
0 answers
32 views

Queue process fails with unclear error ouput

I have a custom job queued, which in itself writes to the logs that the thing it is doing has been done successfully, however if I check the result in "Utilities" > "Queue Manager&...
7ochem's user avatar
  • 163
1 vote
1 answer
27 views

Displaying coupon error messages on front end commerce 4

I have read in the Commerce documentation that natively, commerce doesn't display any errors when a false coupon is being entered. Did I understand the docs correctly or is there any why to achieve ...
LessMore Creative Studio's user avatar
1 vote
1 answer
25 views

Setting form values based on querystring

I'm working on a project that is using Sprout Forms not for saving form submissions but as an interface for searching Craft entries. So the idea is after submitting the form, the template performs a ...
Tyssen's user avatar
  • 653
1 vote
1 answer
25 views

Directory-like page structure for many categories and cities

I would like to setup many pages (eventually 500-5,000) where only certain variables such as category and city change. The idea is that each page is optimized for a certain category and city. Setting ...
flip's user avatar
  • 105
1 vote
1 answer
31 views

Can't use matrix.one() and matrix.all() at the same page

i try to get blockMatrix value with different way(.one() & .all()) in the same page (this page consists of several templates) but the result is weird. Here how i do it: i have a blockMatrix("...
Nixxian365's user avatar
2 votes
2 answers
31 views

How do I authorize/register visitors on the site?

I use Craft CMS 4. Please tell me, is it possible to authorize users in Craft CMS? In general, the goal is this: I want to show some elements on the site only to authorized users. For example, ...
Dimi's user avatar
  • 293
1 vote
2 answers
157 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
  • 160
2 votes
2 answers
61 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
  • 105
1 vote
1 answer
34 views

Use table prefix after installation

I finally have been able to install Craft CMS. During installation I left the table prefix field empty. I assume that for each site separate tables are created. Therefore, it would be more user-...
flip's user avatar
  • 105

15 30 50 per page
1
2 3 4 5
289