-
1. Re: Get page name during layout rendering
nollie Nov 30, 2007 12:53 PM (in response to syllant)This might not be the elegant solution you were hoping for, but you can use request.getPathInfo(); and parse your page name out of it. That's what I'm doing in my menu.jsp, which is included in the layout.jsp.
-
2. Re: Get page name during layout rendering
syllant Nov 30, 2007 3:48 PM (in response to syllant)Yes, this would work for breadcrumbs, even though you have to make assumptions to stop at portal root when reading parent path.
But this would not work when building navigation menu beacause you need more information than page name. I use 'navigation' region to display top pages, and I build a tree-menu of nested pages inside layout. I only could build this menu inside 'navigation' region and display it elsewhere in the page because I've implemented it with Javascript.
I find layout management too rigid, hope it will be more flexible with next releases.