New answers tagged

3

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 ...


5

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 ...


0

I dug into the database and looked for differences in the entries table between an entry that was showing in GraphQL queries and an entry that was not showing in GraphQL queries. The culprit was assigning a wrong typeId when creating the Entry. I had mistakenly been setting them all to 1, which is the Login type (at least it is on my site). Now that I am ...


Top 50 recent answers are included