2 votes
Accepted

descendantOf() parameter, entryModel or ID?

These are two different things. {% set entries = myEntryModel.myEntriesField.descendantOf(var) %} In this case the Entries field returns an ElementCriteriaModel object and you are setting the ...
  • 35.9k
1 vote

How can I filter which children I want to show in a sub navigation menu

The way I usually accomplish this is to add a "Hide From Nav" Lightswitch field to the sections I want to filter. This will filter out any entries where the Lightswitch is "on". {% set subnav = ...
  • 2,985
1 vote

Loading entry based on dynamic route

I think it's because you're trying to cram too much into your entry variable. For one, .slug() is going to return an entry with that slug, so I think that's a bit of a full stop. For two, ....
  • 1,932

Only top scored, non community-wiki answers of a minimum length are eligible