Sunday 17 April 2005 11:53:10 pm
Maybe I didn't make this clear enough. I use the default menu template's way of building the menu, which lists all sub-folders, but only those folders the current user has read rights to. I want to show the folders the user does not have access to, but display a login page instead. So problem #1 is missing menu items (considering just building this manually) The "content" block does this already ($module_result.content} but the path does not. So I get the login page where the content should be, BUT with a "Kernel error (1)" where the path should be. So problem #2 is a kernel error on the login page. If I could do something like this in path.tpl:
"Section show=module.isReadable()"
(...current code)
"Section-else"
Access denied "Section-end" That would work just fine, but I can't figure out just how. Right now I think I'll just build the menu manually to add the "missing" links, but I still need to fix the path so that it'll only access the module if the module is readable.
|