Top new questions this week:
|
After upgrading to Craft 4 non of my Craft Forms are working… getting the error “Symfony\Component\Mime\Address::__construct(): Argument #2 ($name) must be of type string, null given, called in …
|
I’m trying to get the number of entries that have selected checkboxes. This works successfully (where genreGames is a checkbox field): {{ games.genreGames(‘action’).all()|length }} Is there a way …
|
I am struggling to create a new category group and category programmatically. I’ve found a few examples for creating an entry, and one for creating categories in Craft 2, but I can’t get it working in …
|
I know how to get a list of selected checkboxes for a entry: {% for option in entry.myFieldHandle.options %} Label: {{ option.label }} Value: {{ option }} or {{ option.value }} {% endfor %} But I …
|
I updated Craft and plugins to the latest version, and now I cannot save any entries, it throws the following error about unknown property canonicalId: 2022-11-10 15:15:45 [-][1][…
|
Working through the upgrade docs, and when I run php craft migrate/all I get the following: Exception ‘yii\base\UnknownPropertyException’ with message ‘Invalid general config setting: …
|
With the Shopify plugin, is there a way (or is there a future plan) to support the addition of multiple stores? Thinking about a situation where a client has different Shopify stores for different …
|
Greatest hits from previous weeks:
|
I am using the following block of code in a template: <hr class=”rule”> {% if entry.features | length %} <div class=”feature-block”> <h4 class=”is-uppercase”>Features&…
|
Is it not possible to define multiple conditions in an if statement? {% if foo == ‘x’ || foo == ‘y’ %} I tried this and got an error: Unexpected token “punctuation” of value “|” (“name” …
|
This issue becomes especially difficult when there are multiple environments, with multiple developers working on different features that affect the data structure. The holy grail is a git-style …
|
I’m currently building a site with two languages, and I need a language switcher so wherever you enter the website you can switch the language easily. I’ve come this far: {% for locale in craft.i18n….
|
Is it possible to convert a simple string (“Hello World!”) to uppercase (“HELLO WORLD!”)?
|
I currently have a working profile update form using purely craft but I would like to now enhance that using Vue and Axios to update via Ajax. I may well submit a couple of questions rather than put …
|
I have auto-updating currently disabled using the “allowAutoUpdates” config setting, due to concerns about plugin compatibility and unforeseen breakages, mainly due to experiences with other CMS’s. …
|