New answers tagged


Just to expand on the caveat regarding field suffixes in Craft 3.7+, I asked on Github what the recommended way to include field suffixes in a custom query is. Here's brandonkelly's response: The easiest way to do it would be to just hardcode the column name in your template. It won’t change between environments or anything. That said, it does feel kind of ...


Unfortunately, the answer differs pretty dramatically for native properties with "stable" column names and for Content, which (as of Craft 3.7.0) now contain a "suffix" that (in most any other case) is not a concern for developers. More on that in a moment. Titles For titles, it's as simple as using the .select() method native to the ...


$entry->setFieldValue('alcoholWip', array_values($categoryIds)); Forgot to use array_values to pass in the values only, not the key/value pairs. See, I told you I was going crazy!!

Top 50 recent answers are included