Get child page by category

0 views
Skip to first unread message

jsoo

unread,
Dec 14, 2010, 9:57:49 AM12/14/10
to Escher CMS Developer Mailing List
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?

Art Age Software

unread,
Dec 14, 2010, 1:04:20 PM12/14/10
to escher-...@googlegroups.com
<et:children:each category="cat, cat2, cat3"> will iterate through all
children of the current page context with at least one of the
specified categories.
Reply all
Reply to author
Forward
0 new messages