> Please put a subject on your emails.

Sorry.

>
> 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.
>

Ok,

I have tried this, but am having no success.

I have a screens dir like this

screens
 - MyStuff
   > Home.vm

And a layouts dir like this

layouts
 > Default.vm
 - MyStuff
   > Default.vm

I assumed that Home.vm would use the Default.vm in the MyStuff dir, not in
the root of layouts. Am I doing something stupid?

I am accessing Home.vm using a dynamiuURI like: <A
href="$link.setPage("MyStuff,Home.vm")">My Stuff!</a>

Gareth



------------------------------------------------------------
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