I'm trying to use Escher to duplicate the multi-level nav menu of an
existing site. Something like:
Home | *Foo* | Bar
*About* | Contact |
when on the page
site.com/foo/about/. The second-level menu changes
for each top-level item. (Home has no second-level menu.)
The odd thing about this site is that there is no
site.com/foo/ page.
The link in the top level of the menu is directly to an item in the
second level. This is true for every top-level item except Home. I'm
trying to adapt the example menu from the Escher example site, using a
@children:each@ loop inside a @find@ block. So what I'd like is to
assign a category to the second-level items that the top-level items
link to, then use those page URLs for the top-level links.
How to find a child page by category? Do I have to loop through all
the children? Furthermore, when building the menu I need the top-level
title or breadcrumb along with the child pagelink. Haven't really
figured out how context works here.
Or any other suggestions for how to do this?