All Questions
14,268
questions
-6
votes
0
answers
25
views
Impact of Core Web Vitals on SEO Rankings
With Google's emphasis on Core Web Vitals, how has it affected your website's SEO rankings? Any tips on improving site speed and user experience to meet these metrics?
I have came across this post : ...
0
votes
0
answers
4
views
How does use the Bulk Resave Elements command with checkbox group fields?
I recently added a Checkbox Group with 3 options to a Section. By default, I would want the checkboxes to be checked, and to allow the author to uncheck them as needed.
To apply the above "...
2
votes
2
answers
414
views
Monolog Logger error
<Irrelevent preliminary context> Somewhere in the process not understanding modules and whether they get to have Variable classes, and running php craft make module and composer dump-autoload -a ...
1
vote
1
answer
93
views
Email Field Being Dropped on sendMessage (Craft Contact Form Plugin)
New to Craft CMS and trying to solve a mystery. When this contact form sends, the recipients don't get the email field. We get the others, including the consent, but the email field is missing. Any ...
1
vote
1
answer
38
views
permission to access users only on specific user group
I would like to ask if there is a permission to view and edit the users on specific user group? or is there any plugin to do that?
example: I have user groups called "Class 1" and "...
3
votes
3
answers
485
views
Check if a FieldHandle exists in Module without throwing 'Invalid field handle' exceptions
I've been pulling my hair out trying to work this one out.
I'm building a module to auto-populate a super-table on EVENT_BEFORE_SAVE, the module works exactly the way I want it to, everything seems to ...
1
vote
1
answer
35
views
Money field with dynamic currency selection
I'm working on a multi-lingual site and we need to output costs for products. This is NOT a Craft Commerce site however. I need to show different costs per site depending on the location and different ...
0
votes
0
answers
15
views
Migration of entries to a different channel. Deleting old channel deletes moved entries
I've written a migration which successfully moves entries to a new section. The problem is that if you delete the old empty section, the moved entries are removed with it.
Before Migration:
Section 1 &...
1
vote
1
answer
566
views
How to update a User's Entries custom field only once just after save?
From a custom module, I'm listening to EVENT_AFTER_SAVE_ELEMENT events, to be sure to get the Entry ID after save:
Event::on(
Elements::class,
Elements::EVENT_AFTER_SAVE_ELEMENT,
function (...
1
vote
1
answer
28
views
Fixing Craft deprecation errors general question
I want to fix some deprecation errors on my site but would like to know a little more about how this works so that I know they are actually fixed and I haven't just cleared/hidden them.
If I visit a ...
1
vote
1
answer
35
views
Contact form plugin: Unable to verify your data submission (in Safari and Chrome)
Description
I am using the contact form and it works in my Brave browser but in Safari and Chrome the form will not send. It used to work fine, so I don't know what has changed. If there is a quick ...
1
vote
1
answer
160
views
Database driver & version after server upgrade
The server I'm running Craft installations on just got an upgrade to Ubuntu 20 with MariaDB 10.5 Before MySql 5.7 was used.
When I look at the System Report in the Craft CP, it says: Database driver &...
1
vote
1
answer
179
views
Why is the Algolia index population process with Search Plus timing out?
I'm at a loss here. Hopefully, someone here can shed some light into a Search Plus plugin and Algolia index population issue I'm having.
I'm able to add an item (page, blog post, product) to the ...
1
vote
1
answer
1k
views
Craft 3: admin is showing "500 Internal Server Error" (apache) after fresh install
Just successfully installed a fresh copy of Craft CMS via web browser method under:
http://kultursprung.org
Frontend is visible but the admin is showing raw Apache error 500 after fresh install:
http:...
1
vote
1
answer
138
views
Special characters like ✓ are not being saved in text fields
we have just noticed that characters like ✓ are being saved in the title field but not in plain text fields regardless of the database type (PostgreSQL / MySQL) or field type in the database (text, ...
2
votes
1
answer
38
views
Wildcard searching for custom field queries
I've noticed that the * wildcard works for simple custom field queries, for example if I have three entries named Foo, Foo*, Foo*Bar, running
craft.entries.title('Foo*').all()
will get 3 results, and ...
1
vote
2
answers
138
views
Stop customers from increasing line item
I have a site where the owners want to stop customers from ordering more than 1 type of item.
The Twig logic is already in place to stop any forms showing that would allow customers adding more than ...
4
votes
4
answers
1k
views
Multiple craft.entries field parameters
I have an for entry loop in which I need to look for two different field conditions. Separately they are:
craft.entries.eventStartDate('>=' ~ (now.date))
craft.entries.genericEventDate(':notempty:...
1
vote
1
answer
36
views
Sprig request Getting 414 Request-URI Too Long
I have sprig components on multiple pages, Some are working fine but some get '414 Request-URI Too Long '
Looking at the networks tab, it sends many elementId={ids}&CRAFT_CSRF_TOKEN={token} after ...
1
vote
2
answers
500
views
How-to display a dropdown field with optgroups?
The display of a dropdown without optgroups is defined:
{% set field = craft.app.fields.getFieldByHandle('<FieldHandle>') %}
<select name="fields[<FieldHandle>]">
{% for option ...
0
votes
1
answer
59
views
Multi-Site Craft 3 - How to set defaultTokenDuration to shorter duration for just 1 of the sites?
I currently have a multi-site Craft 3 install with this in the general.php config file (amongst other settings)
return [
'*' => [
'defaultTokenDuration' => 259200, //72 hours
]
]
...
0
votes
1
answer
34
views
Next previous page links
I'm working on a reviews site where each entry has a series of fields, but on the front end, different pages are used depending on whether fields have values in them or not, e.g. if fieldX has data, ...
1
vote
1
answer
20
views
Entry URI Format from an Entries Field (Categories)
i am trying to set the url format for some entries to include the category slugs set for it within a category entry field - i can get the first one like this
{eventCategory.one().slug}/{slug}
but ...
1
vote
1
answer
158
views
Updating private repo plugins from admin?
Is it possible to update private repo plugins from the admin at all? Would love that functionality, especially for smaller projects that are installed where there's no CLI access.
2
votes
2
answers
245
views
Remove $_SERVER and DB Queries from logs in 3.4+
How can we disable Craft from logging MySQL queries and $_SERVER object into the logs?
For our team, this creates additional noise that's not needed for us to debug issues.
Thanks :)
1
vote
1
answer
26
views
Slug: German "Umlauts" (beyond limitAutoSlugsToAscii) // db storage
Is there a chance to avoid German "Umlauts" (äöüß) for the slug?
I'm aware of this: https://craftcms.com/docs/4.x/config/general.html#limitautoslugstoascii
But the editors can edit the slug ...
1
vote
1
answer
27
views
Omit specific URLs from the sitemap
I want to exclude certain URLs from the sitemap, depending on the custom field settings in their corresponding entries.
I'm using SEO Matic plugin in craft4
1
vote
1
answer
35
views
How to make AJAX request to controller inside module?
Created a new module to receive form values and process API in Craft CMS 4. How to make an AJAX request to access a controller in my module?
module name - giftcard
controller - GiftCardController
...
1
vote
1
answer
541
views
Is it possible to hide certain entries in the Content SEO section of SEO Matic?
I would like to "hide" Certain Pages or entries from the Content SEO Section as they are never seen by the end user and are not used in the XML sitemap. Is there a way to do this ?
1
vote
3
answers
61
views
Debug Toolbar Not Displaying on frontend
I just updated a site to Craft 4 and the debug toolbar no longer shows on the frontend, but does show in the CP. Have not had this issue with other sites that were updated.
Any ideas?
0
votes
0
answers
27
views
Craft Commerce Orders - Customise Sources
In the backend, under orders, is there any way to create a custom source based on a particular product that is purchased?
My customers will only ever be purchasing 1 product as there is no basket, ...
1
vote
1
answer
23
views
Craft Commerce Missing Products Tab
I've just installed the craft commerce plugin to trial it, but I'm not seeing the products tab under Commerce in the backend? Am I missing something? I'm using Craft 4.5.10.
Thanks,
Chris
0
votes
1
answer
44
views
Transfering content from my local docker environment to production
For the second time, I've created a website with CraftCms. This time, I used my windows computer to setup the project but I had to use docker. Fyi, I'm not experienced with docker, but I was ...
1
vote
2
answers
33
views
clickable link in Formie notifications
I have a Formie form on my site where users can request a white paper. After filling in the form, their browser opens the PDF in a separate tab. I also want to send the user a confirmation email with ...
1
vote
1
answer
26
views
showing content conditionally in layout
I'm trying to conditionally show some content inside the layout file. In my entries I have a lightswitch field - to indicate which entries should be excluded. This all works fine when I can identify ...
1
vote
1
answer
88
views
Is it possible to use static terms inside Formie email notification?
This is my first time using formie and it looks really nice. Thank you for the plugin.
I just have an issue with translations in notification. So here is some context :
I have a form with static terms ...
1
vote
1
answer
159
views
Prepopulating image fields - Formie Plugin on Craft 4
I have a front end entry form for users to update their entry. It's built using the Formie plugin. I need the fields to prepopulate with the current entry content. According to the Formie docs fields ...
0
votes
0
answers
14
views
Setting title in Instant Analytics GA4
I’ve installed Instant Analytics GA4 (https://nystudio107.com/docs/instant-analytics-ga4/)
The default title is the template (which is a bizarre default IMO) as a result all of my analytics are ...
1
vote
1
answer
59
views
Craft + FeedMe update
I'm trying to update Craft to 4.5.10 which requires PHP 8.0.2+ but I have Feed Me plugin installed, which is using Cakephp 3.10.5, which requires PHP >=5.6.0,<8.0.0.
Is it possible to update ...
1
vote
1
answer
26
views
Cookies Change-If we add(/?) with URL content changes are reflected
We have done content changes in site(www.windstream.com)after changing content in this site and we clear cookies as well. But still changes are not reflected. If we add(/?) with URL content changes ...
1
vote
2
answers
37
views
How to change the name of an entry?
I'm new with CMS and I'm not able to change the name of an entry (single).
How could I do that?
Thanks in advance!
Vincent
1
vote
2
answers
731
views
WARNING: heuristic fragment matching going on! when querying matrix fields or any query with multiple fragment types with Graph QL using Nuxt Apollo
I am relatively new to using Craft Headlessly and am trying to query matrix fields with Nuxt JS and it's Apollo module.
I have discovered, that although the graphQL queries work in the GraphiQl ...
1
vote
1
answer
48
views
Tables not created when plugin installed
I've got a plugin that works on Craft 4.5. It's been installed a long time, upgraded from 2.x to 3.x.
Now trying to use it on a new install of Craft 4.5.10, installing it does not create any tables. ...
1
vote
1
answer
79
views
Craft CMS 3.8 - Field not found after changing entry type, but then is found after running again
I'm currently using migrations to change/swap content. On certain entries, there are assigned category fields attached to specific entry types. I am consolidating all of these to a single category ...
0
votes
0
answers
20
views
Limit External API Calls From Plugin In Craft 2
I have a plugin in Craft 2 that will make an API call to an external API to gather and display data on a template; however, I would like to limit the number of calls to a certain number per second (or ...
3
votes
1
answer
464
views
Displaying errors on frontend user forms
I'm trying to get some feedback for the user on registration when the username already exists but I don't know in which object the errors are.
I use the form they provide in the docs:
https://docs....
1
vote
2
answers
257
views
Conditionally show table column headings
Is there a way to conditionally display a table column heading if the table field row has been entered? i.e.
if my table has up to 3 columns
and I fill in ALL the fields like this I'd see
ch1 | ch2 |...
0
votes
0
answers
32
views
Sprig "View Less" Button
I'm trying to build off the "Load More" button, and essentially "Load Less" by reverting back to the initial state. The code below resets it back to 0 and just starts load from the ...
0
votes
1
answer
28
views
I'd like to create a Wishlist and save it into a cookie, instead of having to login
I'm a bit lost.
I'd like to create a wishlist for products and save them into a cookie.
I don't want anybody to have a login and I don't mind if the list is not sharable and only available on the same ...
1
vote
1
answer
174
views
CraftCMS Image Transform returning NULL on asset.url when stored on AWS S3 Bucket
So i'm using Craft as a headless CMS with a React frontend.
When querying assets on a S3 bucket and applying a transform to them in my GraphQL query the URL response is NULL.
This isn't the case when ...