Newest Questions

0 votes
0 answers
30 views

Password reset email not sent when requested through front-end despite using valid email address

Certain users on our site are unable to request a password reset email through the front-end template. In the logs I can see that the error [craft\controllers\UsersController::...
Meester_Paul's user avatar
0 votes
1 answer
28 views

Lightswitch field no longer saving

We have a nag screen to remind users to fill out their public profile. The nag has an ignore option (as seen below) that updates a field on the user's record called ignoreProfilePrompt. The form is ...
Mosswalker's user avatar
0 votes
0 answers
7 views

Commerce (5.3.4) Product Type Reordering

Apologies if this has been asked and answered, or is on, like, page 2 of the docs, I couldn’t find the answer — and it seems like it should be simple. Note: I am not asking about ordering entry ...
mitrol's user avatar
  • 284
0 votes
1 answer
36 views

Custom code blocks not appearing in search results page

Hoping someone could assist. If I search a term, the results returned show the page Title and the next H2 in a body block. Could anyone advise as to whether content that exists in the H1 or any of the ...
Taryn Duckham's user avatar
0 votes
1 answer
71 views

Craft CMS 5: Reasonable database indices to improve select performance

We are using Craft CMS 5 for a mid-sized website (with three languages). One entry type contains a lot of data (500k entries) so we are wondering how to improve database select queries by setting ...
Daniel's user avatar
  • 3
1 vote
1 answer
56 views

Craft CMS 5 Ddev local build suddenly giving 404 page

I recently deployed a local Craft CMS install to our server and took several steps to prepare, including setting the site offline using an offline.php template and configuring a .env file to connect ...
Daemon Dooley's user avatar
0 votes
0 answers
6 views

3.x GraphQL mutation to create a pre-existing Entry returns the most current Entry instead? Want to get the id of the created/existing entry

In Craft 3 I have a GraphQL mutation set up successfully — it creates the Entry. Curiously, if that Entry already exists (there is another Entry with identical data) then the return uses data from the ...
Kirk Roberts's user avatar
0 votes
1 answer
29 views

Can I add custom fields to Sites and can I set a default entry in an entries field?

I am working on a multi-site platform and I have a channel of "teams" and a channel of "Posts". Each post could be associated with multiple teams, however each site has a default ...
Jay's user avatar
  • 1,042
0 votes
0 answers
26 views

Resave entry as draft in EVENT_AFTER_SAVE with saveElementAsDraft

Under certain circumstances, I would like to resave an entry as a draft. In an EVENT_AFTER_SAVE event I check if these circumstances are met. I found out that there is a method saveElementAsDraft and ...
obs's user avatar
  • 672
0 votes
0 answers
19 views

Remove Validation for Address Label Field

In Craft 5 (4?) addresses have this Label/Title field. I am using this for my commerce front end registration. Took the example code from the craft github repo. According to the docs i can remove the ...
Henrik's user avatar
  • 437
0 votes
1 answer
32 views

How does the Asset location field work?

I don't really understand what's happening with the asset location field in craft 5. It seems to be working differently than in Craft 4. I enter {slug} so all uploads are tied to the respective entry. ...
KSPR's user avatar
  • 3,792
0 votes
1 answer
65 views

Best way to structure Craft 5 for shared content?

I am looking for some help, ideas and guidance on how you would structure/architect Craft for the following product pages? Each Product has some Unique Content (Highlighted in Green) and Shared ...
Terry Upton's user avatar
  • 1,896
0 votes
0 answers
13 views

Commerce Guest User How to add first address at checkout

i updated a project from commerce 3 to 4 and now from 4 to 5. As the user and address process differs a lot from version 3 to 5 I took over a lot of code from the commerce github repo. Now if I put a ...
Henrik's user avatar
  • 437
0 votes
1 answer
76 views

Update title (and slug) when field is changed in EVENT_BEFORE_SAVE

The title (and slug) of my entries uses the value of a number field. I added an EVENT_BEFORE_SAVE listener to set the value of this number field ("auto increment") when it has not been set ...
obs's user avatar
  • 672
1 vote
1 answer
84 views

How to enable CKEditor's image resize handles

I want to enable the image resize handlers as demonstrated on the official CKEditor site. I have exhausted all obvious solutions to get this to work. I've tried various attempts to install the plugin ...
Mark Notton's user avatar
  • 2,357

15 30 50 per page