Jennifer,
I let TemplateTookit do the work for me. I create a separate menu
template file to include. That file will check, for each menu item, if
the user has the ACL roles to see the item. An example using
C::P::Authorization::Roles would be:
[% IF Catalyst.check_user_role( 'Admin' ) %]<a href="[%
Catalyst.uri_for( '/admin' ) %]>Admin Menu</a>[% END # if admin %]
/Mitch
Jennifer Ahn wrote:
hi everybody!
I'm trying to implement a menu on a left navigation column in my web
application and i would like to know how others have approach a
similar topic.
My controller object contains the menu items. How would my layout
template, which is part of a wrapper, access this array of menu
items? My controller class has many methods and I wouldn't want each
method to have to keep a stash of the menu items.
Thanks !
Jennifer
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive:
http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/