[Catalyst] Including a submenu

topperm9 at gmail.com topperm9 at gmail.com
Mon Apr 6 15:06:52 GMT 2009


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" %]
</div>

Then, I tried setting $page in my controllers, hoping to have the
submenu "switches/menu.tt2", etc included.

However, when I load the page, 	I get the following error:
Couldn't render template "file error - /menu.tt2: absolute paths are
not allowed (set ABSOLUTE option)"

Am I going missing something obvious, or going about this in the wrong
way?

Thanks,
Matt



More information about the Catalyst mailing list