Questions tagged [structure]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
17 views

Make page urls correspond to their structure

I set up a page entry type under Structures, and because this is for generic pages, I want it to be arbitrarily nestable. From the structure page, this is easy to set up; however, I want the urls for ...
1
vote
1answer
297 views

dynamic urls for channel/structure that's linked to the main structure

I'm trying to create dynamic urls for a channel or structure section that depend upon the url structure of a different structure (or the first entry in that structure). For example, if the main ...
1
vote
1answer
31 views

Is there a way to query for structure Entries that have no Parent?

Suppose I have a structure Section with Entries like this: Parent A Child X Parent B Parent C Child Y How would I return this list of Entries? [Parent A, Parent B, Parent C]
1
vote
1answer
17 views

Creating a channel (or entries) using a similar channel

I am currently trying to make a channel called "classmates" similar to a channel that is called "News". I have this working beautifully, but I am not sure how to set a different ...
12
votes
1answer
2k views

Changed section from Channel to Structure, but can't re-order entries

As the title says, I changed a section from Channel to Structure, but when clicking on that section in the dashboard, the layout still looks like a Channel, and I'm not able to reorder/drag the ...
6
votes
1answer
2k views

Move entry from one structure to another with parenting

Seeing as moving entries between sections isn't supported (yet) through the Craft interface, I followed Brandon's answer for a workaround through the database. I am moving entries from one structure ...
1
vote
1answer
26 views

nesting functionality missing in section type structure after feed-me import

i create an new section from type structure. when i manually add the entries and nest it everything works as aspected. after importing my entries with feed-me and the option create parents if not ...
1
vote
1answer
49 views

Best Practice on how to build a Pricing Page on CraftCMS

CraftCMS gives us so many ways/options on how to build pages that I'd love to see what people are doing with their pricing pages! I'm planning on building something similar to Amilia.com or Slack.com. ...
1
vote
1answer
23 views

Whats the best way to place content without using a lot of categories?

I have a technologies magazine and recently find out about Craft CMS. It looks like I can make everything that I need to but I need advice. So basically we are writing about smartphones, cars, ...
0
votes
0answers
29 views

How to create structured elements

I'm quite new here, so I hope this is not a too newbie question: I'm currently developing a plugin and want a similar view like in Entries > Structures, so I can sort and create children of my ...
0
votes
0answers
40 views

Multiple structures sharing the same entries?

I'm working on a site that currently has one structure ("projects") that organizes my entries for each specific project. In the admin I can reorder these entries manually... so far so good! ...
1
vote
1answer
36 views

Structure Navigation with 3 possible Link Types using Nav tag

I'd like to build a Structure that can be used to output the main site navigation; each "entry" in the Structure would have three custom fields (types): Category, Entries, URL This question ...
4
votes
1answer
706 views

How do you import hierarchical data that uses the adjacency list model into Craft Structures or Categories?

Craft makes it nice and easy for us to have hierarchy in Structures or Categories. Many other popular CMS platforms support hierarchical data as well but some support it using a different data model. ...
1
vote
1answer
64 views

Simple Product Listing Pages by Category Slug

I'm new to Craft and I'm trying to create very basic product listing pages based on Categories and I'm not sure where to start. First, it doesn't look to me like you can create separate templates for ...
0
votes
0answers
23 views

Structuring externally scraped content

I scrape content from an external website using JSON API with the FeedMe plugin. Content is saved as entries with plain text and redactor-type Fields. How can I structure this content so that I can ...
0
votes
0answers
18 views

Get new level from ElementStructureEvent

I'm trying to prevent a type of entry from being a root entry (level 1). something like: Event::on( Entry::class, Element::EVENT_BEFORE_MOVE_IN_STRUCTURE, function (...
1
vote
1answer
31 views

After Migration from v2.9 to 3.5 - some entries added into an entry-relation-field get added twice after saving

We migrated a craft cms site with 3 locales from v2.9 to 3.5 We have a section with a field of type "Entries". When editing the entry, and adding certain entries to this field, those get ...
1
vote
1answer
19 views

Dates for entries are in different language

When the user wants to edit the Post Date or Expiry Date of an entry (channel/structure), the calendar is in Welsh language. I have no clue how this happened. How can I change this? Thank you
1
vote
1answer
41 views

How to translate a structure url

I'm working on a multilingual website where I have one structure called Products. Currently, this structure's URI format is configured like this: {parent.uri ?? section.handle}/{slug} Which returns ...
0
votes
0answers
30 views

Alternative overview for structures

Most of our websites use a main structure for the page tree. In some cases, those structures can become quite large and entries further down are not shown initially without scrolling down/autoloading. ...
1
vote
1answer
53 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->...
15
votes
5answers
5k views

How do you only show children of "active" parent in a Structure section's nav?

I've got a Structure section where the top level is the main menu. The submenu consists of the children of the active main menu item. This works well. For the submenu, I'm using this code: {% set ...
2
votes
1answer
318 views

Can I use a structure without slugs?

I'm making a portfolio website, where the url's look like "projects/project-name". There is also an overview page with all the projects that is under "projects" on itself. I'm using a Structure for ...
1
vote
1answer
57 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
28 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
20 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 ...
1
vote
2answers
79 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
1answer
41 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
14 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 ...
2
votes
1answer
133 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 ...
1
vote
1answer
145 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 ...
0
votes
0answers
96 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 ...
2
votes
1answer
215 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 ...
1
vote
1answer
51 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
227 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
103 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
29 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
52 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 ...
2
votes
2answers
1k 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 ...
6
votes
1answer
3k views

What is the best way to create breadcrumbs based on a structure?

How do you create breadcrumbs based on a structure? My structure: Parent Child (active) Other Child Child My url: site.com/parent/child So my breadcrumb need to be: home (url) / parent (url) / ...
1
vote
1answer
99 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
47 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
92 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
13 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
216 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
75 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
64 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
571 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
95 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 ...
2
votes
1answer
1k 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
2 3 4 5 6