Questions tagged [structure]

The tag has no usage guidance.

24 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
40 views

Data Model to Accommodate Statutory Text?

I am planning to build a searchable database of statutory text, and am wondering what would be the best way to model my data for ease of linking spot citations and related text. The statutes are ...
2
votes
0answers
573 views

Creating a manageable site structure

Coming from the EE world, when I need a hierarchical site structure along with sections that have channel-type content, I use the Structure add-on for EE. Events, for example, go in a listing channel. ...
1
vote
0answers
29 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
0answers
54 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
0answers
137 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
0answers
489 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
39 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, ...
1
vote
0answers
73 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
71 views

Display entries linked from Matrix field according to the entries' structure and a light switch in the Matrix

In a channel (market), I have a Matrix field (market_products) with a Stucture-based Entries field (products) and a Lightswitch field (active/inactive). For each market, I need to create an ordered ...
1
vote
0answers
62 views

By reordering entries in structure Craft doesn't show up some entries on front-end using {% nav %} tag

Sometimes I need to reorder or drop certain entry to different ancestor entry in control panel. By doing that I "lose" some entries on front end using {% nav %} tag. A behaviour is depended on how I ...
1
vote
0answers
116 views

How to get the order index of a structure entry?

I have a structure with 3 levels. The first 2 levels are for structuring the content and most of the content comes from the 3.rd level. This 3.rd level are the entries which are written by different ...
1
vote
0answers
90 views

Different order per locale for Structures

I know this is a long shot, but is there a way to order a Structure differently per locale? As in the standard drag and drop ordering that comes with a structure but with the ordering saved for each ...
1
vote
0answers
187 views

How to display a nested list from a structure section based on categories assigned to last descendant?

I have a structure section, which allows categories to be assigned to the final descendant. I'm trying to list the entries by category, whilst including the parent structure entries (so the hierarchy ...
1
vote
0answers
62 views

How to flatten assets listing view (remove subfolders constraint)

Well I like in the entries listing the possibility to toggle a structure entry type between Structured and List view. I d like to do same for my assets because I got a structured assets tree with ...
1
vote
0answers
210 views

Performance and cache when using entry type templates and getSegment

I'm working on a site that will end up having 30-40+ structure sections which are sharing templates and will be using about 10 different entry types. (This would probably be much easier if I used ...
0
votes
0answers
7 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 (...
0
votes
0answers
29 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. ...
0
votes
0answers
18 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 ...
0
votes
0answers
12 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
0answers
52 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
61 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 ...
0
votes
0answers
248 views

Related entries from level 2 in structure

I'm building a property developers website and it has a carousel at the bottom of the individual property pages, in which I want to show five other related properties from the same group in the ...
0
votes
0answers
133 views

Structure entry connected to multiple parent entries

Is there a way to connect one structure entry to multiple structure entries? Like: (wonderfully drawn image represents the connection of Food Festival to both structure entries)