[Catalyst] Including a submenu

Bill Moseley moseley at hank.org
Mon Apr 6 23:50:49 GMT 2009


On Mon, Apr 06, 2009 at 11:06:52AM -0400, topperm9 at gmail.com wrote:
> I'm trying to add a submenu to each menubar on a site I'm writing
> 
> I tried adding the following to root/lib/site/header
> 
> <div id="navbar">
>     <ul>
>         <li><a href="/switches/list">Switches</a></li>
>         <ii><a href="/hosts/find">Hosts</a></li>
>     </ul>
> </div>
> <div id="submenu">
>     [% INCLUDE "$page/menu.tt2" %]

Try this:

    [%
        menu = "$page/menu.tt";
        PROCESS $menu;
    %]

-- 
Bill Moseley.
moseley at hank.org
Sent from my iMutt



More information about the Catalyst mailing list