Questions tagged [sections]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
66 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?
joomkit's user avatar
  • 2,004
0 votes
0 answers
25 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 ...
Sandwich's user avatar
  • 626
2 votes
1 answer
104 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 ...
Alex Kuzmin's user avatar
1 vote
1 answer
59 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 ...
Thomas's user avatar
  • 69
0 votes
3 answers
75 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 = ...
Leonardo's user avatar
  • 419
1 vote
1 answer
320 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", "...
user13360's user avatar
1 vote
1 answer
525 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 ...
Vinod Patidar's user avatar
1 vote
1 answer
242 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 ...
joomkit's user avatar
  • 2,004
0 votes
1 answer
125 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 ...
InanisAtheos's user avatar
1 vote
0 answers
33 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 ...
Wally's user avatar
  • 333
1 vote
1 answer
87 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 ...
Nick Langer's user avatar
1 vote
1 answer
144 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 ...
Nick Langer's user avatar
1 vote
1 answer
100 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 ...
MoritzLost's user avatar
  • 10.7k
1 vote
1 answer
103 views

How do you save custom fields on an EntryFixture?

I can't for the life of me figure out how to setup EntryFixtures in craft to populate with custom fields. I'm using the project config which already has the sections and fields defined in my tests. I'...
Myles Hyson's user avatar
1 vote
2 answers
64 views

Specify a specific entry type in paramaters

I am currently searching within multiple sections on my site. I'd like to limit one of the sections (courses) to a specific entry type (cce)? Any help would be greatly appreciated! {% set params = { ...
weslawson's user avatar
1 vote
1 answer
99 views

URI with multiple URL formats (after slug)

Is it possible to have a URI like this: /artist/{slug}/news to create an overview of all news articles of this particular artist? I tried to set it up with Routes and with a section Entry URI, but I ...
Matthias's user avatar
  • 110
1 vote
1 answer
400 views

Retrieve section slug by handle

I want to be able to get the slug of my news section dynamically by searching for its handle. Slugs tend to change during the development phase, but the handle doesn't. That's why I want to hard code ...
Matthias's user avatar
  • 110
1 vote
2 answers
193 views

How to display multiple entry loops on the homepage (Single section type)

I've been learning Craft 3 for a couple weeks and I've run into a little snag. I have a homepage that I would like to display multiple entry loops and/or types. However, I cannot find how to do this ...
Justin Kendall's user avatar
0 votes
0 answers
246 views

How to allow multiple entries to have the same slug?

Users create an account and their profile (domain.com/userName) is a template pulling info from craft users. Each user can create entries, all stored in a Structure section (domain.com/userName/...
Rich Holt's user avatar
1 vote
1 answer
1k views

Calling unknown method: craft\models\Section::hasUrls() - Craft 3 upgrade

I am migrating a site from Craft 2 - Craft 3. In my sitemap template I have the following code; {% for section in craft.sections.getAllSections() %} {# We only care about sections that have URLs #} ...
Terry Upton's user avatar
  • 1,884
1 vote
2 answers
133 views

How to build a web page using different sections created in Craft

I am a beginner in Craft. I have a Craft website. There is an HTML design with me. From admin, I divided the HTML into sections and created entries based on that. All the coding related to each ...
Rakhi Vijayan's user avatar
1 vote
1 answer
197 views

Can I use Craft CMS as a PIM system?

Does it make sense to use Craft CMS as a Product Information Management system? I have already used Craft 3 for a couple of sites, and I understand part of its capabilities. I was a bit puzzled ...
nitech's user avatar
  • 679
1 vote
1 answer
338 views

Where/how to add a page title to a section (listing)

I have a number of pages/sections (listings) in either channels or structures. Each page/section (listing) will have a heading that displays an editable title of each page/section. Should I be able ...
BBaysinger's user avatar
1 vote
1 answer
56 views

Merge a structure and a single section

That is written so inefficently: {% set indexNavi = craft.entries.section('pageContent').level(1).all() %} {% set bookingLink = craft.entries.section('booking').all() %} <ul class="navList"> ...
KSPR's user avatar
  • 3,776
1 vote
1 answer
41 views

Edit the create new section page [closed]

When creating sections, I need a way to toggle all of them off or on. I have 188 sites and you can imagine how big of a pain it is to untoggle one by one. Am I able to do this somehow? Create a ...
good_afternoon's user avatar
1 vote
1 answer
462 views

How to manage multiple categories and entry url formats

I have a setup in Craft 2 like below: Section: products Url format: flowers/{productCategory.last.uri}/{slug} Categories: cat1 = Bouquets cat2 = Valentines days Url format: flowers/{slug} The ...
joomkit's user avatar
  • 2,004
1 vote
2 answers
330 views

Multiple authors for an entry

The website I'm currently working on is a plattform where several 'subgroups' can post events but also have their own subpage. So the two affected secrions are 'event' and 'subgroup'. Currently, every ...
obs's user avatar
  • 487
1 vote
1 answer
63 views

Using language specific variables inside section URL settings

When i use some kind of variable in url settings of section, it always uses default language version of this variable. For example, blog has two languages, english (default) and german. If i use ...
Ded Nolyxeux's user avatar
1 vote
1 answer
921 views

How do I get different URL Format with parent/child structures & how do I display different templates?

I need to create a features structure section for a website that will have parent features and child features. Q1: How do I get different URL Format for parent & child pages? I need the parent ...
mateostabio's user avatar
1 vote
1 answer
229 views

Fixing deprecated code, relatedTo issue

Working on fixing a lot of deprecated code, enviroment is setup as dev so getting a lot of warnings. Some are easily idetified, others are pretty generic and come from core files. Doesn't show where ...
Bowenac's user avatar
  • 801
1 vote
1 answer
2k views

How can I list Entry Types of a single Section?

The following outputs all sections and their entry types, but I'm struggling to work out how I output only the entry types from the "blog" section. {% for section in craft.app.sections.allSections() %...
Ryan Roberts's user avatar
1 vote
3 answers
1k views

Craft templates in sub directory

We want to add a little more structure to our templates directory by adding folders to group templates files. For example: templates --_macros --_views --_layouts In general this works fine but we ...
dazz's user avatar
  • 195
1 vote
2 answers
192 views

A-Z Separate Pages

I've built a page listing all entries by Character 0-9/A-Z. But unfortunately it's extremely slow loading due to the amount of entries the site has. I'm wondering if I can break out the letters into ...
JMKelley's user avatar
  • 1,374
2 votes
1 answer
114 views

Section and template folder problem

I hope anyone can help me to get started. I think I have a brain freeze or something. I have created a section (structure) that is called "House". I want this section to use a template. In craft/...
Joe's user avatar
  • 79
2 votes
1 answer
686 views

Targeting the first entry item

I'm using Craft 3 and have created a section (channel type) for my project entries. At the bottom of each project page I have my Prev and Next Project buttons. How do I target the first and last ...
Richard Clark's user avatar
1 vote
1 answer
56 views

How should I organize/structure my channel sections?

To me, I have a large dataset of 2,000 - 2,400 entries. It's a static dataset. I only need to update a few fields annually. I plan to use channels. But, how should I organize the channels? ...
Hellyar's user avatar
  • 911
1 vote
1 answer
870 views

Get Entries from a specific Entry Type

I'm trying to get all Entries that are from a specific Entry Type. My Section is "Site". Which has 3 different Entry Types. Now I want to get all Entries from the Entry Type "Program". I'm trying ...
Leonardo's user avatar
  • 419
1 vote
1 answer
210 views

Element Type: Edit Page fields

I'm currently working on creating a full-sized Edit Page for my own Element Type. I created a elementSelectField and wanted to know if you guys have some advise or good articles to read on that ...
Leonardo's user avatar
  • 419
2 votes
0 answers
70 views

Multi-language, how Craft determines the CopyFrom after adding website and Section

The question is admin (backend only), not Twig : Where to Manage "copy from" site when adding new website and add section to this website. The "Copyfrom" takes place in the background after ...
eugbro's user avatar
  • 21
1 vote
0 answers
28 views

Section permissions are ignored when linking to an entry

Users with permissions to limited sections can still “link to an entry” in any section from within the WYSIWYG (Redactor) editor. I'm using Craft 2 with a Rich Text (Redactor) field. Is this a bug ...
Mario Vasquez's user avatar
0 votes
0 answers
339 views

Get Entries from Section related to a category

I'm currently trying to get all entries which belong to a section which is related to that category. e.g. Category Brand Offer Offer belongs to a brand. Brand has a category field. {% set ...
JMKelley's user avatar
  • 1,374
1 vote
1 answer
32 views

Can user group permissions be used to override entry section locale settings?

I have created a localized site with 9 locales for a client in craft v2.6. They are now requesting us to create a user group for each locale so they can assign editors for each of those regions. When ...
Adam Williams's user avatar
0 votes
1 answer
212 views

How can I use two different templates for a single entry?

I'm building a coursework site and have a Course section, who's entries will be courses containing work that the client will assign to users. I built in both the work itself (different "lessons" ...
FuzzyJelly's user avatar
1 vote
2 answers
406 views

Craft CMS - Dynamic Order Field Layout In Sections

I'm wanting to have the order of my elements within a template dynamic so that the user whilst in a template of page can reorder the modules as they please. See screenshot for example Within the ...
Filth's user avatar
  • 153
1 vote
1 answer
382 views

Entry within multiple sections

I'm trying to work out if the following is possible in Craft. Assuming I have a single entry, I want to theoretically tag it as a 'blog' and 'about', both of which are sections I want to then have ...
Tim Coysh's user avatar
1 vote
1 answer
784 views

Get the section name based on a url segment

I'd like to retrieve the name of a section based on a url segment. Normally I would use {{entry.section.name}}, but this doesn't work, since there is no entry available. I've got this working: {% ...
noregt's user avatar
  • 1,062
1 vote
1 answer
130 views

best approach to call entries from two different sections

I have set up two sections for two different kinds of events. On one page I want to differentiate between them on the other page I want to list them all. How do I organise that best on the back end ...
analog junkie's user avatar
1 vote
1 answer
48 views

In a large set of entries across multiple sections, how can I loop through each section type in the set?

I have a set of entries from multiple channels and I want to loop through each section type that is in the set. Something like {% set entries = craft.entries.search(query).order('score') %} {% for ...
Dave Joyce's user avatar
1 vote
1 answer
406 views

Translate Section name

I can see in the CP (craft 3) that my sections have a 'translatable' icon but I don't find anywhere in the UI to translate section names. What's the best way to translate these?
Rosana Ruiz's user avatar
2 votes
1 answer
282 views

First Craft website: how to organize different content

I am new to Craft and read a lot of arctilces and most of the docs. Most parts are quite easy. Now I plan how to organize all the different parts and pages. Below is a simple outline. Not every page,...
suntrop's user avatar
  • 163