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 [structure]

The tag has no usage guidance.

1
vote
1answer
34 views

Fetch the three entries before, and after, a given Structure entry, with wrapping

For a given structure entry, I need to return the previous three, and the next three entries as one array. But if the given entry is the last in the structure, I need the "next three" to wrap around ...
1
vote
1answer
32 views

How to reorder structure entries in the Admin panel?

I converted a channel into a structure and now my entries are listed in reverse order. I have a very large number of entries. Is there a way or a plugin to permanently sort them and store the order?
2
votes
1answer
24 views

How to set index page as parent of a structure

I don't know if it's possible, but what I would like is to have a structure with 3 levels linked to a single entry that would act as the index. The problem is the examples I've seen are only with 1 ...
1
vote
1answer
67 views

Craft CMS Structure: How can I display parent and child items on an active parent page?

I'm currently setting up a Structure nav and am trying to set it up so that child pages only display if; 1) The child page itself (or it's sibling) is currently active 2) The parent page of that ...
1
vote
1answer
57 views

How can I display second level children only from a specific parent structure item?

I'm trying to display a list of child structure links, but only from a specific parent. The template I'm working on isn't for the parent in question so I don't think I can use 'entry.' My structure ...
1
vote
2answers
46 views

How do I create a structure side navigation that will show active parent list-item and active child list-item

A bit of a background on the project. I have a features structure section, that has 2 levels: Parent features & Child features. {% set features = craft.entries.section('features').all() %} My ...
1
vote
1answer
48 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
2answers
22 views

Removing URL's from Existing Entries

We've created a site which now has 40 entries in a Structure. We need to retrospectively remove the URI's because there isn't an individual page for each entry, they're all on one page but search ...
1
vote
2answers
35 views

URL Structure - advise and thoughts of best approach?

I am currently building a website for Hot Tubs and within this there will be New Tubs, Used Tubs and Hire Tubs (each will be a top level page on the navigation, and each tub will have a details page). ...
1
vote
0answers
19 views

Product in nested navigation

I'm currenty running Craft (v3) Commerce (v2) and have a difficult structure. This is my menu now: single home page. single about page. channel blog page. It has to be with the products in the menu,...
1
vote
2answers
110 views

Calling Craft API from node.js

I really love working with Craft, especially around how easy and user friendly it is. However, I do work with React/Vue and usually I setup a node server/app that will do some routing, render views ...
1
vote
1answer
54 views

Can a structure have multiple parents?

Can entries of type structure have multiple parents? https://docs.craftcms.com/v3/sections-and-entries.html#sections says that they can be hierarchical, but the UX doesn't seem to let me have more ...
2
votes
1answer
24 views

Channel content in structure

I'm posting a lot of newbie questions today, hope that's ok. It will get better! I would like to add a channel (list/detail) to a structure page. Home > Pages > List Page I'm sure I'm looking ...
1
vote
0answers
38 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
59 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
24 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) %} ...
1
vote
1answer
45 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
56 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 "...
2
votes
1answer
33 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 ...
2
votes
1answer
324 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
172 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
35 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
24 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
156 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
70 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
32 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
83 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
50 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
64 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
139 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
232 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
35 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
321 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
76 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
75 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
95 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
45 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. ...
1
vote
0answers
72 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
75 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
48 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: ...
3
votes
1answer
907 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 ...
4
votes
1answer
305 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
111 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
104 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
1answer
37 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
208 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 ...
1
vote
1answer
41 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
167 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
214 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 ...
1
vote
3answers
139 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 ...