Questions tagged [sections]
The sections tag has no summary.
183 questions
1 vote
2 answers
143 views
How to use Sprig to filter by related entries using a dropdown
I have a Sprig board listing architect's projects, built in Craft 5. This is working pretty well with a search, date ordering of entries etc. But — I am having trouble with a dropdown that I'd like to ...
1 vote
1 answer
212 views
Section: dynamic Entry URI Format
My solution works, but I seem to have some caching issues ... so I'm unsure weather my solution is useful or not? Entry URI Format of Section (Channel): {{craft.entries.id(530).one().uri}}/{slug} ...
1 vote
1 answer
235 views
Craft 4 move entries
I have two sections with the same fields. I want to move entries from one section into the other section. There is this post but its there a better way in Craft 4?
0 votes
0 answers
48 views
Can't reference custom field in Section's Entry URI Format
Craft 3.7.33 I've got a channel Section called "Stories", and a plain text custom field, subTitle, which I want to use in the Entry URI Format. Right now, that is stories/{slug}. When I ...
2 votes
1 answer
451 views
Check which field at which sections is used
It is useful sometimes to have a list, which field at which sections/globals/categories/neo-fields etc is used - so that one can delete or reuse some fields, or change some field settings and keep in ...
1 vote
1 answer
109 views
Hide/show tab dependant on Craft sites
I have multiple sites, in a Field Layout of section entry type, I have tab A and tab B. I want tab A to show in site A, but hide it(including all the fields under it) in site B. Is there a way to ...
0 votes
3 answers
278 views
Get section handle of an entry inside of an EntryField
Maybe Craft 4 is playing games with me but im stuck on this problem: linkedEntry is an entry field which is limited to 1 entry. This outputs the section handle correctly {% set linkedEntry = ...
1 vote
1 answer
652 views
How to get a list of entry types for a section using GraphQL?
The goal is to get a list of entry types for a section, so that a user can filter entires by entry type e.g. query Entries { entries(section: "content", type: ["news", "...
1 vote
1 answer
1k views
Get entries in an entry type in twig template
I have two channel types section namely "Services" and "Cases". I have added caseServices as entry field in cases. I can get services of a case in twig as entry.caseServices. But ...
1 vote
1 answer
618 views
How do i remove versions from a section after changing section settings to not store versions?
I have a section that i have changed from versioning to switching git off as I do not need them. I have also changed a field adding it as searchable. In order to reindex search field i tried CLI ...
0 votes
1 answer
239 views
Get the localized handle and slug for "current" section for constructing breadcrumbs
I'm trying to contruct breadcrumbs for entries under a specific section. This feels like such a "how-hard-could-it-possibly-be" type of question, but I've been at this for a lot more time ...
1 vote
0 answers
54 views
CMS pages have become duplicated?
I have overtaken a project and noticed that the pages section of the CMS shows duplications. I have not come up against this before and was wondering if anyone has any suggestions to stop two of them ...
1 vote
1 answer
116 views
nesting functionality missing in section type structure after feed-me import
i create an new section from type structure. when i manually add the entries and nest it everything works as aspected. after importing my entries with feed-me and the option create parents if not ...
1 vote
1 answer
200 views
nested sections
how can i achieve the following result? i have a structured section called products like /hardware/apple/iPhone which gets the template /templates/productpage.twig now i need need to load a different ...
1 vote
1 answer
229 views
Remove expiration date field from section / entry type
By default, every entry has an expiration date field allowing the editor to expire an entry. I'm currently working on an application with some sections where expiring an entry doesn't make much sense ...