Questions tagged [parents]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
0
votes
0answers
22 views

Remove an entry's parent via a Craft Plugin or Module

I'm trying to remove/unset the parent from a module, according to the docs it seems like this method should do it: https://docs.craftcms.com/api/v3/craft-base-element.html#method-setparent. However, ...
1
vote
1answer
88 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"> ...
2
votes
1answer
387 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
182 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
420 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
251 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 ------...
1
vote
2answers
234 views

Getting ancestors for manually set parent in template

I have a a few pages outside of a structure but I want to display a breadcrumb for it as part of a structure. I am currently setting the parent page like so: {% set parent = craft.entries.section('...
1
vote
2answers
263 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....
4
votes
1answer
416 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 - (/...
1
vote
1answer
602 views

List both parent entry and its child entry

I am trying to display a list of entries. Specifically the parent entry and it's children's entry. I started off using this: {% nav page in craft.entries.section('forms').isChildOf.slug('applicant-...
2
votes
1answer
1k views

How to manage different templates for a structure

i am trying to figure out the right way to display elements on a page. Its about a website for a fashion designer. There will be parent elements like : Parent X Parent Y both of those elements use ...
0
votes
0answers
128 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)
2
votes
2answers
197 views

Maintaining a relationship of parent from children selected through entry field

Not sure that is the best title but: I have a Section called Research Projects. An entry from this section contains a number of images, videos and audio entries in a grid chosen through an Entry ...
1
vote
1answer
199 views

Showing/Hiding children of a Structure based on categories

I'm a newbie, so please excuse this if its a super simple question. I have a structure set up like so: • Parent Section 1 - Child 1A (category: pro-users) - Child 1B (category: pro-users) - ...
2
votes
4answers
838 views

Structure Entry Item's Parent

I need to create a hierarchy that looks something to the effect of parent 1 parent 1 child 1 parent 1 child 2 parent 1 child 3 parent 2 parent 2 child 1 parent 2 child 2 parent 2 child 3 and so ...
2
votes
1answer
187 views

Monthly Calendar || Month View

So I have /calendar and linking previous/next months on that template. The previous/next month urls are /calendar/2015-08 and /calendar/2015-08. I have this custom route setup: On my /calendar/2015-...