Stack Exchange Network

Stack Exchange network consists of 174 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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

The tag has no usage guidance.

1
vote
0answers
21 views

Showing entries in CP only for specific category

I need to sort structure section entries belonging to specific category (entries have category field). With default structure list displayed in CP, i see all entries for this structure type section ...
1
vote
2answers
16 views

How do I remove segment 1 in my URL AND get the parent URI?

I have a structured group of pages in a static channel that I would like to display without "static" in the URL and show the parent URI. This is my structure: patients-visitors ---- our-stories ------...
3
votes
1answer
17 views

I try to add element to structure, and I want to add to this element parent ID

Form code: <section class="membersTitle" > <label>Date</label> <select name="fields[parent][]"> {% set entries = craft.entries.section('order').level(1) %} ...
0
votes
1answer
33 views

Craft 2 use different template for the same structure

I have a site with projects which each has a projects structure with an associated category and a number of images. The URL is set as projects/{projectCat.first.slug}/{slug} I want to use the ...
1
vote
1answer
25 views

How can I set a landing page for a structure with no slug?

In Craft2, I have structures that each have a landing page/homepage for that structure. If the structure's URI format is "liver/{slug}", how do I make the 'landing page' entry have a URI of only "...
1
vote
1answer
17 views

Managing sections and field updates between environments

What is the best practice for the following: Client site running CraftCMS (v3) is in production. Updates are needed which require additions or modifications to the data structure / schema of the site ...
1
vote
1answer
79 views

Nested Entries in Craft 3

In Craft 2 there used to be a Nested Entries field, but this is not available in Craft 3. I know I can do {parent.uri}/{slug} in the Entry URI Format field, but if I want it to be appended by ...
0
votes
0answers
66 views

When using Multi-site, how can structures not “propagate entries across all enabled sites” like a channel?

Understanding Structures (see below), I'd like to use one with multi-site. However, structures "propagate entries across all enabled sites". Is there a way to use structures with unique entries for ...
2
votes
1answer
27 views

Previous/Next button to next item in Matrix

I've made a projects structure with inside a couple of projects. On the homepage people can fill in a matrix with either a project or a textblock. I'm capable of looping through the detail pages in ...
0
votes
1answer
22 views

How can I Link a category entry to a Subsite?

I have a Structure Section: Home Sub 1 Sub 2 About List item List item Info How can I link the «Home»-Entry in a Structured Section to the «Sub 1»-Entry? Any help is much appreciated. Thanks ...
1
vote
2answers
82 views

Why is the parent slug showing up in the child slug in a structure?

Basic info I have a structure with a handle about. The Entry URI format is about/{slug}. EDIT: also tried it with just {{ slug }} I created a child page called "Privacy Policy" with the slug privacy-...
3
votes
1answer
45 views

How do you limit the number of items that show up in a navigation?

I have a nav set up which works find but I need to limit the number of top level links to the first 5 in the loop (right now we have 9 plus oodles of children links!). Have tried various flavours of ...
1
vote
1answer
25 views

Why are my entries disappearing when {% if category | length %} is added?

Editing an index page that displays all entries within a structure. Everything displays fine. I add a category to a few entries and add {% if category | length %}and everything disappears as if no ...
1
vote
2answers
61 views

Structure entry position in url

Is it possible to include the entry position (Structure) via the Entry Type Title Format? This is the current format: published in {postDate|date('F')} {postDate|date('Y')} which renders: published-...
1
vote
1answer
31 views

Replicate entries structure in admin

I am looking to see if there is an easy way or already a plugin available that would replicate the entries structure layout. I plan on creating a plugin that would allow an admin to mass update a ...
1
vote
0answers
29 views

Structure parent root - entry type or category urls?

Been rolling around with this for the last 36hrs trying to decide most useful option. The dilemma is how to preserve a structure and use categories - or not. Below is my structure: Food (section ...
1
vote
2answers
64 views

How can I create a family tree hierarchy in Craft?

I'm struggling to think of a way to create a family tree hierarchy in Craft. I've tried using categories and structures, but run into the problem of needing child nodes to have two parent nodes. I....
1
vote
0answers
131 views

How can I filter with facets in algolia with nested structures?

I have a site that currently uses a structure where we have a parent entry and children under it. On the parent page we have entries that have been created with matrix blocks. The structure is as ...
1
vote
0answers
30 views

chain of random entries based on relations

I'm developing a bio section for a client. Every bio is linked to another bio creating a chain of bios. The order of this chain should be random. The schema would be as following: Bios: Bio a, Bio b, ...
2
votes
1answer
158 views

Eager-Loading child elements in a multi-level structure section

I have a structure that looks like this: Experiment ( Level 1) Cages (Level 2) Animals (Level 3) Measurement (Level 4) I am outputting this information into some inline JSON like so: {% set mice =...
1
vote
1answer
65 views

Improving page performance issue

I'm trying to speed up this page: http://planned2perfection.co.uk/what-we-do Yes it has a lot of images but I think it's TTFB that's the issue here. It's built with Structures which I'm thinking ...
3
votes
1answer
59 views

Find structure entries which parents relate to other entries

I want to select all children of all entries that fulfil specified relation parameter. I have tried this, but I think .isDescendantOf only supports single entry. Is this even possible? {% set ...
1
vote
2answers
58 views

Can you use Routes on Structure entries

I'm using a route to use a different template, but whatever I try the page remains unchanged, my structure is set as: entry url format: {slug} entry template: _pages/_entry I want an entry's slug ...
1
vote
0answers
36 views

Duplicating a Neo field's content

I'm writing a plugin to duplicate a Structure within Craft 2. I've covered off duplicating the section, entry types, field layouts and can duplicate the entries, covering of the main Craft fields. ...
0
votes
0answers
43 views

Structure not allowing drag/drop [duplicate]

Craft 2.6.2999 I have two channels that I've set to structure. In my local install I can drag/drop entries no problem. HOwever on the staging server the drag drop function doesn't work - there are no ...
2
votes
1answer
60 views

Conditional anchor in structure url

I have a structure section, where the last child should be an anchor in the slug: parent/parent#child I'm trying to setup conditional url formats on nested entries as such: {parent.uri}{% if object....
1
vote
1answer
34 views

Posting children to a Structure

This question is a follow up of a previous question see: (Entry Form - Multiple Entries & Entry Type & Parent) I am trying to add multiple children to a pre-existing multi level structure: ...
1
vote
1answer
371 views

How to fetch entries from multiple sections

I have five separate sections with x number of entries each. I would like to render all the entries from all the sections on a single entry template page. Is there a way to do this ? I know we can set ...
3
votes
1answer
175 views

Entry Form - Multiple Entries & Entry Type & Parent

I'm building an MVP for a project, I'm using Craft and would like to: Create an experiment (/experiments/) Create multiple cages for the animals within the previous created experiment eg. 5 cages - (/...
1
vote
1answer
65 views

Structure unable to find _entry template

I have a Structure named "pages" which is set to use the template named "_entry". When trying to visit one of the pages I’m just getting a blank screen. The Craft log shows an error in the template ...
3
votes
1answer
73 views

Start a Loop at the nth Entry in a Structure and Loop to the End?

I'm trying to start a loop at the 8th entry in a structure and then loop through the remaining entries in that structure and stop once I reach the end. How would I accomplish this in Craft?
0
votes
0answers
53 views

How can I import a multi level navigation with FeedMe to a structure section?

I need to import a multi level navigation from an xml file using FeedMe into a structure section. I can import the first level (cat_name) just fine but I can't find a way for the 2nd and 3rd level ...
0
votes
0answers
32 views

Return a single structure element with its parent

I'm dealing with several hundred thousands of structure entries which makes the CP very cumbersome. I've resorted to building a plugin that lets the user select a specific entry and display only ...
0
votes
1answer
32 views

Replacing content a specific URL/page already reserved in Structured Data Entries

I have a site that I've created a 'Generic Page' type for that is a Structured type with URL Format of {slug}. This is great for the client as they can create an entry for 'toplevelpage' and then ...
2
votes
1answer
129 views

Why isn't relatedTo not working (anymore)?

I’m using a structure for creating new pages and navigation. In this structure there are multiple entry types where one is used for creating category pages. Here a user can add some content and select ...
0
votes
0answers
69 views

Remove section handle for separate site structures on multidomain site

We have a multidomain build and have segregated the content for the two domains into two different sections that both use the same templates. [using same markup, but loading different Stylesheets] We ...
1
vote
1answer
38 views

Change position of entry types in a structure

I was wondering if there's a way to change the position of elements in an entry type structure. I want to change the positions of the elements when a user logs in, so I'll write it in a plugin. Any ...
2
votes
1answer
114 views

Best Technique for have sections in display in same page with anchor link to each section

I'm currently in the process of making a website for a restaurant and using Craft CMS & I'm not sure how to go about making the menu page. It is a very complete page with a bunch of different ...
1
vote
1answer
147 views

Using Structures instead of Singles

Has anyone ever tried using Structures instead of Singles? I'm developing something that's kind of like multiple sites in one, they share the same central design, just with content differences and a ...
0
votes
0answers
49 views

FeedMe & Structures

Just wondering if anyone has tried to migrate a EE Taxonomy tree over to a Craft Structure using Feedme (or any other technique)? The DB table structure is quite similar with lft and rgt values for ...
1
vote
3answers
98 views

Redirect to another EntryType template if no Children exist

I have a Structure Section called 'products' which uses two EntryTypes, one for 'Product Type Overview' and one for 'Individual Products', where 'Individual Products' are the children of 'Product Type ...
1
vote
3answers
80 views

Newly added child entries not showing on listing/parent page straight away

I am running into an odd issue where creating new child entries does not bust the cache of the parent page(s) that lists them. This is the structure I am working with: I am displaying the Course ...
3
votes
1answer
59 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) ...
1
vote
1answer
96 views

Architecture advice

I am fairly new to Craft but like it's potential but I am not sure the best way to architect a site I am building. Here is a high level picture of the site. It is a learning site that will have ...
1
vote
2answers
55 views

linking to staff page, how to setup entry

I am fairly new to Craft and I am hoping someone can help point me in the right direction so I am not having to do double the work or have to learn the hard way that there is an easier way. I am ...
1
vote
1answer
241 views

descendantOf() parameter, entryModel or ID?

I'm confused about what to pass as a parameter in the descendantOf() function. I'm developing a website and passing an entry ID as a string (I also tested it as an integer) and everything went fine, ...
1
vote
0answers
39 views

Display entries linked from Matrix field according to the entries' structure and a light switch in the Matrix

In a channel (market), I have a Matrix field (market_products) with a Stucture-based Entries field (products) and a Lightswitch field (active/inactive). For each market, I need to create an ordered ...
2
votes
0answers
26 views

Data Model to Accommodate Statutory Text?

I am planning to build a searchable database of statutory text, and am wondering what would be the best way to model my data for ease of linking spot citations and related text. The statutes are ...
3
votes
1answer
113 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
91 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 ...