There are several questions like this already but none seem to cover my use case. I have a structure that looks something like this:
Landing Page 1
- Case Studies
-- Case Study 1
-- Case Study 2
-- Case Study 3
- Sub page
- Sub page
Landing Page 2
- Case Studies
-- Case Study 1
-- Case Study 2
-- Case Study 3
- Sub page
- Sub page
If I'm in any child of the 'Landing Pages' I want to create a nav (as per the docs) but I cant' seem to get all of the pages I need. I can easily get the top level 'landing page':
entry.getAncestors().level(1).first()
I can then get the descendants separately:
entry.getAncestors().level(1).first().getDescendants()
However, I want a single ElementCriteriaModel with everything from the 'landing page' down in it.
Is this possible?