<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><FONT size=2>
<P>I have a situation where I have an nested expanding menus. Items in menus go 
3 levels deep and render differently (style sheet classes) depending on whether 
they are visible, or active, or what level they are on.</P>
<P>Here is this portion from the original web template that I'm trying to 
emulate within PmWiki...</P></FONT><FONT face="Courier New" size=2>
<P>&lt;div id="left-nav"&gt;</P>
<P>&lt;div class="top-level"&gt;&lt;a id="site-home" 
href="http://homelink/url/"&gt;Home link&lt;/a&gt;&lt;/div&gt;</P>
<P>&lt;div class="top-level"&gt;&lt;a class="open" 
href="http://item1/url"&gt;Item 1 in Nav&lt;/a&gt;&lt;/div&gt;</P>
<P>&lt;div class="second-level"&gt;&lt;a class="open" 
href="http://item1.1/url"&gt;Item 1.1&lt;/a&gt;&lt;/div&gt;</P>
<P>&lt;div class="third-level"&gt;&lt;a class="active" 
href="http://item1.1.1/url"&gt;Item 1.1.1&lt;/a&gt;&lt;/div&gt;</P>
<P>&lt;div class="top-level"&gt;&lt;a href="http://item2.url"&gt;Item 2 in 
Nav&lt;/a&gt;&lt;/div&gt;</P>
<P>&lt;/div&gt;</P></FONT><FONT size=2>
<P>Class within div is used to indent the items on the menu. The values are 
"top-level" "second-level" and "third-level." Let's call this LEVEL.</P>
<P>The class within the a href is either a) not present, b) "open", or c) 
"active". These correspond to treatment by the css for background, highlighting, 
font, etc. Let's call this STATE.</P>
<P>I also need an ability to show or not show an item, something akin to 
Cookbook/ExpandingMenus. Let's call this SHOW.</P>
<P>(LEVEL | class="top-level", class="second-level", class="third-level")</P>
<P>(STATE | null (empty), class="open", class="active")</P>
<P>(SHOW | process this item, do not process/show this item)</P>
<P>So, I'm hacking at the template. I'm not a programmer. I'm starting to read 
about conditional variables and markup variables and anything else I can 
find.... At this rate, I'll probably figure this out in aother 2 to 4 weeks. Can 
anyone here help? Does anyone have an idea about what I should do to enable 
this? How should I set this up?</P>
<P>It seems Cookbook/ExpandingMenus could help if I was only trying to go 2 
levels deep. I would need some additional level of grouping for third-level 
items within a second-level.</P>
<P>Thanks in advance to anyone who can help.</P>
<P>Matt</P></FONT></FONT></DIV></BODY></HTML>