The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [sections]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
31 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 ...
1
vote
1answer
22 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 ...
0
votes
0answers
26 views

Database Exception – yii\db\Exception

I created a plaintext field called 'researchYear' that was add to a section called 'research'. I added a record to the section. I went back to the field, renamed it to 'researchDate' and made it a ...
0
votes
0answers
19 views

Use one entry's records in Dropdown field

Let's assume we have two sections... the 1st is topic and the 2nd is videos. I want to filter videos from topic's name. So I want to use topic name as a dropdown in the videos section. But I don't ...
1
vote
1answer
20 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"> ...
1
vote
1answer
34 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 ...
1
vote
1answer
58 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 ...
1
vote
2answers
26 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 ...
1
vote
1answer
29 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
273 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 ...
1
vote
1answer
99 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
272 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
313 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
94 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
27 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
113 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
37 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
331 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
142 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
23 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
14 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
174 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
26 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
53 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
183 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
213 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
360 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
55 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
27 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
249 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
131 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,...
2
votes
2answers
93 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
350 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
33 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
322 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
137 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
68 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/...
2
votes
1answer
83 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) ...
3
votes
2answers
501 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 ...
2
votes
1answer
183 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 ...
1
vote
2answers
169 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
49 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
140 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
460 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
198 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
76 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
277 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
48 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
169 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
264 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 ...