Questions tagged [structure]
The structure tag has no usage guidance.
238
questions
0
votes
0answers
18 views
Purely Static Pages on a CraftCMS Site
A client is using Craft 2, which someone else set-up for them. We're not trying to change their set-up but would like to offer them a quick and easy way to archive their annual event.
I just assumed ...
0
votes
0answers
17 views
Categories or Structures: Most efficient way to organize FAQ sections
Working on a plan for a site that has multiple audiences, with a FAQ section for each audience.
FAQ entries are organized by Topic (Finance, Advertising, Publicity)
each FAQ entry can be ...
2
votes
1answer
18 views
URL structure for structure section
This seems like it should be straight forward. I need to set-up a structure section with a parent page which uses the same section entry and same template. So the parent would have 'parent' as the ...
0
votes
0answers
18 views
yii\base\Exception - while saving nested structure entry
while saving a nested structure entry, we're having the following error.
The invalid ID is the parent one.
Your help is welcome.
Nicolas
yii\base\Exception - POST
Invalid entry ID: 6518
...
1
vote
1answer
40 views
2 multi sites with separate root pages
I have 2 sites within 1 Craft 3 installation, they are both the same language and generally have nothing to to with each other.
I would like both to have individual startpages at the URL "/".
Is ...
1
vote
1answer
25 views
403 forbidden error when moving entries in structure
We're running on fortrabbit.
I cannot sort entries in a structure without getting:
403 index.php?p=admin/actions/structures/move-element
Unauthorized
User is not authorized to perform this action
...
1
vote
1answer
39 views
How to lock down entries to specific levels of Craft CMS Structure
I’m trying to figure out a way to setup a simple Craft section: a list of projects, each project consisting of a title and a type; and a series of photos, each photo having a description.
BUT... If I ...
1
vote
1answer
16 views
Pulling blog entries related to a structure entry field type
fairly new to craftCMS. I've wrestled with this now for hours and exhausted all research avenues.
I have three main "service pages" (Web Design, Digital Marketing, Hosting & Analytics) These are ...
1
vote
1answer
29 views
Change the URL of nav child entry conditionally
I want to change the URL of a li from a nav menu conditionally (using a custom field where the user sets the URL), but I don't see how to use conditionals with {% ifchildren %}?
{% nav entry in ...
1
vote
1answer
23 views
Entries not visible on Production
I have a Structure called Pages which works great on my localhost. When it comes to deploying the website i'm not sure what the issue is.
Before I deploy; I am running ./craft settings/rebuild. If I ...
1
vote
1answer
33 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)...
0
votes
0answers
40 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
42 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
70 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
26 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
52 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
107 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
43 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
398 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
306 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
114 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
328 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
46 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
40 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
27 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
333 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
92 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 ...
1
vote
1answer
29 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
44 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
202 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
26 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
60 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
189 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
74 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
2answers
545 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
43 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
26 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
245 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
113 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
45 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
149 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
77 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
98 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
233 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
385 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
38 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
535 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
110 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
91 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 ...