The mechanism that is used to locate the correct layout template for a given screen is not used when looking for a specific template such as a navigation or screen.
john mcnally Stefan Ri� wrote: > > Hi all, > > I do not seem to get the "navigation template fall back to default" working > correctly. > > from: Velocity-Site Howto > http://jakarta.apache.org/turbine/turbine-2/howto/velocity-site-howto.html > <snip> > For the Layouts and Navigations, the following paths will be searched in the > layouts and navigations template subdirectories (in order): > *********** > /about_us/directions/driving.vm > /about_us/directions/default.vm > /about_us/default.vm > /default.vm > </snip> > > Is this really true?? > How do I specify a navigation template in a layout without giving the full > path to the navigation template by calling $navigation.setTemplate() in the > layout? > > I also tried the following: > in the layout: > $navigation.setTemplate("orders,SecondNav.vm") > > Then there is a screen in orders,Default.vm which uses the above > layout-template. > > Now if there was no orders,SecondNav.vm template in navigations I would > expect Turbine to look directly under navigations for a SecondNav.vm or a > Default.vm for the navigation, but it simply keeps telling me: > Error processing navigation template:users,MMIAdminSecondary.vm using > module: VelocityNavigation > > What I want to do is to have a different secondary navigation for different > parts of my application? > > I'm using tdk2.1 > > Any hints appreciated. > Thanx. > Stefan Ri� > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
