[opencms-dev] Opencms Navigation Modification

Frank Michel frank.michel at gmail.com
Thu Jan 19 15:03:31 CET 2006


Hi,
I'm looking for a similar thing:
I want to see all 1st level navigation entries and the ones that are in the
actual opened folder on the second level.
Using the getNavigationForFolder I can get the top level or all sublevel.
But how can I get only the actual sublevel when inside?

And: how can I identify that I am on the index.html of a subfolder?
With navi.getResourceName().equals(filename)) I can verify it for other
documents but that does not work for the index.html.
Any ideas or best practices?

Thanks in advance!
 Frank



On 1/19/06, Joe Desbonnet <jdesbonnet at gmail.com> wrote:
>
> You can make navigation any way you want with a few lines of script.
> Eg this will create
> a bread crumb trail:
>
> <%
> {
>         Iterator iter = navBuilder.getNavigationBreadCrumb().iterator();
>         iter.next();
>         out.write("<a href=\"" + cms.link("/") + "\">Home</a> ");
>         while (iter.hasNext()) {
>                 CmsJspNavElement nav = (CmsJspNavElement)iter.next();
>                 out.write(" > <a href=\"" + cms.link(
> nav.getResourceName()) +
> "\">" + nav.getNavText() + "</a> ");
>         }
> }
> %>
>
> Also remember that you can style LI tags any way you want with CSS --
> I've even seen UL/LI being used to create horizantal tabs.
>
>
> Joe.
>
>
> On 1/18/06, Colin Coolidge <colincoolidge at yahoo.com> wrote:
> > I see that by default the left nav puts all the entries in <li> </li>
> tags.
> > Where can I change this?
> >
> > looks like somewhere in here????:  <%= cms.buildNavigationLeft() %>
> >
> >  ________________________________
> > Yahoo! Photos
> >  Got holiday prints? See all the ways to get quality prints in your
> hands
> > ASAP.
> >
> >
> >
> > _______________________________________________
> > This mail is sent to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please
> visit
> > http://lists.opencms.org/mailman/listinfo/opencms-dev
> >
> >
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060119/d150faed/attachment.htm>


More information about the opencms-dev mailing list