Skip to main content

Questions tagged [nested]

The tag has no usage guidance.

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

relatedTo craft 5 nested matrix entires

Im trying to query a list of matrix entries that have a related field but it doesn't work after updating to craft 5. Note that 'category' is not category field type, its a regular structured entry ...
Tibbe's user avatar
  • 131
1 vote
1 answer
24 views

Problem with recursive macro descendants in craft 5

I'm trying to display my nested comments. I've created 7 test-comments: ID Parent ID Comment Descendants Count Level 785 N/A test 1 6 1 788 785 test 2 ...
smaniren's user avatar
0 votes
0 answers
28 views

How to append the category field data nested inside a section to an input tag?

while clicking the input tag it should display its related entries Based on the category field the data selected in the backend value should get appended to the input tag. When looping through the ...
Reeves Bale Ronny's user avatar
1 vote
1 answer
151 views

nested sections

how can i achieve the following result? i have a structured section called products like /hardware/apple/iPhone which gets the template /templates/productpage.twig now i need need to load a different ...
Nick Langer's user avatar
2 votes
1 answer
501 views

Multiple relatedTo conditions using a combination of "and" and "or"

We're trying to make a filter that allows you to pick multiple items from 1 category, and multiple items from another category and return back all appropriate elements. We're in PHP land not twig so ...
owenmelbz's user avatar
  • 149
1 vote
1 answer
261 views

Display parent category with nested child categories and related entries

I'm struggling to loop through level 1 categories and display as a category title and then show nested level 2 categories (via a category title) under which I want to nest related categories to ...
user2569's user avatar
  • 457
1 vote
2 answers
74 views

Display entries sharing the same nested category on an entry page

I'm trying to show the other entries assigned to the same nested category (on an entry template) but get an error if I use .last() which I was hoping would show the nested category assigned entries (...
user2569's user avatar
  • 457
2 votes
1 answer
45 views

Link to a nested category

I'm using a matrix field to allow the author to add products they can link to category pages, but my code: {% for block in entry.transformerProductNavigation %} <a href="{{ block.transformer.one....
user2569's user avatar
  • 457