Questions tagged [structure]

The tag has no usage guidance.

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

Parent are not set anymore after saveElement()

In this code I try to create a new Entry and set a Parent to it. The sectionId and the typeId are actually the same. $navigationItem = new Entry(); $navigationItem->typeId = 4; $navigationItem->...
0
votes
0answers
16 views

Total count of entries related to entry from another section (structure), including all levels within that section

I have two sections: Products (channel) and Accessories (structure). The Accessories section is a structure and can multiple levels to it, a Product may relate to a child (level 2) but not it's parent ...
0
votes
0answers
16 views

How to Attach a User or Users to a Company

Ok, we have users and we have companies and we have different company locations. How to attach them? Or what's the best practice in attaching a user to a structure (company/location)? Or is there ...
1
vote
1answer
29 views

Showing different field layouts for entries within the same structure

I set up a structure for pages that looks like this: - All Services - Service 1 - Service 1 subpage a - Service 1 subpage b - Service 2 - Service 2 subpage a - Service 2 subpage b ...
1
vote
1answer
21 views

Why is it when I update an entry within a structure in the admin, it reorders it to the bottom of the list?

I've created a structure and I have about 15 entries in it. They are grouped under an entry named "0234" and each entry below it is named 0234 A, 0234 B, 0234 C, etc. I would like to keep ...
1
vote
1answer
16 views

Templating for Structures

I can't find anything in the Craft 3 docs that explains templating for a structure entry. What I want to do is show level 1 entries with their associated level 2 entries in a simple list type ...
0
votes
0answers
27 views

Link to the next Entry Type in a Structure level [duplicate]

I have a Structure with three Entry Types: entypeOne entypeTwo entypeThree When a user is viewing entries saved as entypeThree I want to add 'Next' and 'Previous' links which only link to the next/...
1
vote
2answers
38 views

How to display multiple entry loops on the homepage (Single section type)

I've been learning Craft 3 for a couple weeks and I've run into a little snag. I have a homepage that I would like to display multiple entry loops and/or types. However, I cannot find how to do this ...
0
votes
0answers
10 views

Save Structure Entry Order via Frontend Form

I have a site where users log-in using frontend forms, and access a listing of their posts on the site. The entry type is a structure, and I'm looking to give the user the ability to re-order their ...
0
votes
1answer
28 views

Performance basics? BlogPost+Comments vs. One ever-expanding Matrix Field?

New to Craft, and unsure how it works under the hood. In terms of overall performance, I'm curious to know which of the following scenarios is the most performant approach in terms of DB queries and ...
0
votes
1answer
13 views

Is it possible for an assigned entry (via field type Entries field) to know what it has been assigned to?

I have two entry types 'pipeline' (structure) and 'series' (channel). I know I can add children in a structure, but I want to keep 'pipeline' and 'series' separate to avoid duplication, as a series ...
1
vote
1answer
43 views

Conditional fields based on structure level

I have a site that will heavily rely on the structure entry type to allow the client to publish content. The "1st" level of the structure will always act as a table of contents for its children. The ...
0
votes
0answers
46 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 ...
1
vote
1answer
63 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
66 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
27 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
48 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
91 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
61 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
25 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
38 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
35 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
44 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
59 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
12 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
120 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
41 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
58 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
315 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
69 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
795 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 ...
2
votes
1answer
614 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
304 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
520 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
82 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
44 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
28 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,...
2
votes
2answers
499 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
134 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
51 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
297 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
31 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
61 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
308 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
111 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
766 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
56 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
336 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-...

1
2 3 4 5