toppe...@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" %]
</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

_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Could you be using template toolkit ?
I had a problem with abs path there once -
check the syntax re leading slash on path ..

Ken
Berkeley


_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to