Jon Stevens wrote:
> 
> Please put a subject on your emails.
> 
> on 1/9/2001 4:30 AM, "Gareth Coltman" <[EMAIL PROTECTED]>
> wrote:
> 
> > Hi,
> >
> > If I want to have a navigation system with two levels - ie, a main menu and
> > submenus, is the only way to change the side navigation by specifying a
> > distinct layout for each submenu? This is quite confusing... eg:
> >
> > Menu Item 1
> > Menu Item 2 } All use layout x with side navigation y
> > Menu Item 3
> > - Sub menu item A
> > - Sub menu item B } All use layout x, except for a change in the the side
> > navigation to z
> > - Sub menu item C
> >
> > The only way I can think to achieve this is to have a new layout for each
> > sub menu. This means loads of layouts, with only link different in each one.
> >
> > I realise I could add a $navigation_placeholder to the context, but wondered
> > if velocity site already had a way of achieving this.
> 
> Actually, we suggest using a directory structure to organize your templates
> and then you can use a default layout for each portion of your directory
> structure.
> 
> -jon

I think organization of the templates is the best way to go.  Along with
#parse and possibly #macro, you can still centralize common parts of the
layout.  If the number of variations is very few however, a #if/#elseif
chain to select the navigation could work as well, I am not recommending
this alternative just trying to make sure it is stated though I suppose
it is obvious.

John McNally


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to