Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sections]

The tag has no usage guidance.

1
vote
1answer
23 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 ...
1
vote
1answer
49 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 ...
0
votes
1answer
47 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 ...
1
vote
1answer
56 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() %...
1
vote
3answers
96 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 ...
1
vote
2answers
84 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 ...
2
votes
1answer
23 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/...
2
votes
1answer
54 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 ...
1
vote
1answer
30 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? ...
1
vote
1answer
153 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 ...
1
vote
1answer
69 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 ...
1
vote
0answers
18 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 ...
1
vote
0answers
12 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 ...
0
votes
0answers
95 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 ...
1
vote
1answer
21 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 ...
0
votes
1answer
42 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" ...
1
vote
2answers
114 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 ...
1
vote
1answer
149 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 ...
1
vote
1answer
204 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: {% ...
1
vote
1answer
37 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 ...
1
vote
1answer
26 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 ...
1
vote
1answer
162 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?
2
votes
1answer
110 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,...
3
votes
2answers
82 views

List most recent items combined from Channel and Structure sections

If we pass through an array of Channels & Structure sections we find that Channels entries tend to be listed first. So the first 15 will comprise of ChannelOne and ChannelTwo and then start ...
1
vote
1answer
253 views

How to get fields from another section?

I need to get data from fields from another section. My code is: {% for kontaktEntry in craft.entries.section('kontakt').entry.kontakter %} <div> <a href=...
2
votes
2answers
31 views

Any ID I could reference in sections

I created a section for appointment record (channel type). Each appointment record has different fields, i.e. customer name, phone#, address, etc... I would like to set a unique appointment_record_id (...
1
vote
2answers
211 views

Nested IA Structure - What's the best way to get it set up?

I'm beginning to work on my first Craft CMS website. (I'm really excited!) I've read a ton of documentation and am getting my head around setting up a structure within the system. The website will ...
2
votes
1answer
101 views

Organizing Entry, Section, and Category hierarchies

I have a site with three broad sections of content: Humanities, Business, and Music. Within each of these are sub-sections. Under "Humanities", for example, is Politics, History, Economics, etc. ...
0
votes
1answer
64 views

Can structure entries have their own entries?

I have a bunch of categories within a section on my website, but I want each category item within that section to be able to have an additional slug. For example: mywebsite.com/categories/category/...
3
votes
1answer
67 views

How to structurize a multi-project documentation site?

I'm currently working on our new Docs website. This site should hold the documentation for all our projects. I thought I could structurize the content like this: Project 1 (<-- Section) ...
0
votes
0answers
136 views

Not displaying new field in an entry

I am completely new to Craft CMS, and have just started to work with it. I have made a new matrix field, that I will use for image gallery. In that matrix field, I have made a block with image fields. ...
4
votes
2answers
302 views

Most efficient way to check if a section has any active entries

Just wondering what the most efficient way to check whether a section has any entries or not. Based on this, I'm showing some content. The content doesn't take any information from the entries in the ...
4
votes
1answer
133 views

Ordering Structure Sections with Structure Handles

I am using the code below to output a group of sections that have entries along with their section handle. How would I order the sections (ideally by structureId)? I'm not opposed to using supersort ...
2
votes
2answers
128 views

Custom fields on a structure or section archive page

I have a section (or structure, works both) for "events". On the archive template (see image below) I want to add a custom image in the header. The administrator needs to be able to upload the header ...
0
votes
1answer
43 views

How to define section parent page?

I have a structure section with entry url format: "products/{slug}". All entries have they urls like "/products/category1/subcategory1/product1". Currently, I have a header navigation which opens ...
1
vote
1answer
105 views

Search entries ordered by sections

Is it possible to perform a search and have the results grouped/prioritized by sections? e.g. something like: craft.entries.section(['sec3', 'sec5', 'sec1']).search(...).limit(6) as page_info, ...
4
votes
1answer
377 views

Use global values in the Entry URL Format field

I'm trying to use global variables in Entry URLs generated by Craft, but they seem to be empty. Not getting any errors as such, just null. My Entry URL format looks like this: {{siteDefaults....
1
vote
1answer
164 views

How to Organize a Courses Site

I am trying to create a site that offers courses. Each course will be broken up into sections with each sections containing a number of lessons. Viewers will then be able to progress through the ...
1
vote
3answers
66 views

Asset Meta Fields vs Section with Asset field + the other fields?

Let's say we have products, and some of these products have a Firmware Update file (or several firmware update files) that may be associated with the product entry. The Firmware file assets will have ...
0
votes
1answer
209 views

Get Section Handle From Group

I have a landing page on my site where I want to list a group of sections that have entries. I also need to access the section handle of that same group of sections. I am having problems getting the ...
1
vote
1answer
46 views

New section/entry can't go live

I've created a new section, with one entry. When I want to live preview the entry, the live preview button isn't there. I've read this is because my new section doesn't have an active template? How ...
1
vote
1answer
143 views

How to use the same category group as a filter on multiple channel sections?

I have two channel sections, each with only their own entry types. I've added the same category group field to both. I'd like to filter each channel's list of entries by the same category group. So ...
1
vote
2answers
181 views

Get Entries From Any Section Matching a URL segment

I have 2 issues that I need help with: I want to load ENTRIES from any section where the first URL segment of the entry matches jobs. I am using the code below to load any SECTION where the first URL ...
0
votes
1answer
288 views

Removing index.php strange issue

I already had this question posted but I didn't include enough relevant information so I deleted it and here I go again... I have a weird issue currently on my Craft setup. I have removed index.php ...
1
vote
3answers
275 views

Update fields structure from local to production

How can I change fields/sections structure locally while having a live site and then upload the new structure, without wiping the production site? In Wordpress ACF you can just Sync the fields ...
1
vote
2answers
495 views

How should an index page be setup/defined in Craft?

Site construct question... I have categories. Craft knows where to find the template for a category - i.e. markets/{slug}. But I also have a Markets (categories) page with the first 6 entries ...
3
votes
1answer
28 views

Is it possible to limit the number of times a user can be added to the same field across different entries?

I want to make it so that each user can only be assigned once to a specific field across all entries. For instance, let's say we have a bunch of teams. A user can only be on one team at a time. Once ...
1
vote
1answer
36 views

How to make a code/settings for accessing the one database from 2 different html files with {slug}

I create a code for TV show database, but I have a big problem. Please see the image I want to access one entry(post) with some data from some templates. But I don't know how to create any code or ...
1
vote
1answer
322 views

Count table field values in certain section

I would like to know, how many values are saved in the table field called "artikelnummer" with the field name "artikel". The section is called "bikes". I tried: {% set entries = craft.entries.section(...
1
vote
1answer
264 views

Get next entry from an entries field

I am having the following sections: 1. work (section type: single) fields: - workList (type: entries from section type workArticles) 2. workArticles (section type: channel) fields: - ...