Questions tagged [structure]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
23 views

Show multiple products (urls/pages) on the front-end with dynamic titles/descriptions/meta based on a single product in Craft Commerce

I am considered the best way to set this up in Craft and how to handle this with front-end Urls, templates and routes? So I products with variants for Wheel Spacers, (Wheel Spacers are a product type)...
-1
votes
0answers
21 views

Structure navigation with articles and listings

Since a view hours I'm trying this: Cars <- listing Car Stickers <- article Car Manuals <- listing Car Manual 1 <- article Car Manual 2 <- article Car Manual 3 <- article ...
0
votes
0answers
29 views

Database level fix for corrupted Structure section generating “unknown errors”

This is a partial duplicate of a direct support request raised through email. I have 2 Structure sections that have been behaving just fine in Craft 3.1.32.1: One of them continues to be fine But ...
0
votes
0answers
23 views

Unable to delete Entry: Numeric value out of range

I have a Structure section that I converted to a Channel. I then tried to delete an Entry Type from the Control Panel and get the following error: {"error":"SQLSTATE[22003]: Numeric value out of ...
2
votes
1answer
11 views

Sub categories with extra field

I'm stuck on a problem with categories. I never worked with them before so maybe it's not as difficult a I think. I need the following structure: Type of company 1 (e.g. Bakery) -Bakery 1 + ...
1
vote
1answer
33 views

How would you show a specific entry 'and' its children

I'm creating a footer menu and want to show an entry id and its children, atm I'm just getting the descendants but struggling to show the parent and children as well <nav class="cell small-12"> ...
1
vote
1answer
19 views

Custom URI to exclude entries in structure

I have a structure where the Entry URI Format is {parent.uri}/{slug} - what I'm looking to do is conditionally not include entry slugs within the uri based on a show/hide setting in the entry. For ...
1
vote
1answer
47 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
53 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
33 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
205 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
204 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
67 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
160 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
36 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
39 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
26 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
228 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
70 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
27 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
41 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
123 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
25 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
55 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
119 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
52 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
415 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 ...
2
votes
1answer
41 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
194 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-...
2
votes
1answer
88 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
38 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
123 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
61 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
81 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
188 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
311 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
36 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
429 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
95 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
82 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
130 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
55 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
89 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
92 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
50 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
1k 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
329 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 - (/...
2
votes
1answer
144 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 ...
2
votes
1answer
137 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?