<HTML dir=ltr><HEAD><TITLE>AW: [opencms-dev] OpenCms 8 numerate Navigation Items</TITLE>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7601.17573"></HEAD>
<BODY>
<DIV dir=ltr id=idOWAReplyText36724>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial>Hi guys,</FONT></DIV>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial></FONT> </DIV>
<DIV dir=ltr><FONT color=#000000 size=2 face=Arial>no ideas or do I have to provide more information?</FONT></DIV></DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Regards,</DIV>
<DIV dir=ltr>Andreas<BR></DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT size=2 face=Tahoma><B>Von:</B> opencms-dev-bounces@opencms.org im Auftrag von Feuerstein Andreas<BR><B>Gesendet:</B> Sa 10.09.2011 10:09<BR><B>An:</B> The OpenCms mailing list<BR><B>Betreff:</B> Re: [opencms-dev] OpenCms 8 numerate Navigation Items<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Hi Kai,<BR><BR>thanks for your answer!<BR><BR>Your solution is working perfectly for display issues. But what I want to achieve is to put the numbers into a <dfn> tag for accessibility purposes. The result should then look something like this:<BR><BR><ul><BR><li>first entry</li><dfn>1</dfn><BR><li>second entry</li><dfn>2</dfn><BR><li>third entry</li><dfn>3</dfn><BR></ul><BR><BR><ul><BR><li>first subentry</li><dfn>1.1</dfn><BR><li>second subentry</li><dfn>1.2</dfn><BR><li>third subentry</li><dfn>1.3</dfn><BR></ul><BR><BR>I need to have this in two lists as I'm using a Template 3 based template. So I assume I have to edit nav_main.jsp and nav_side.jsp.<BR><BR>My idea is to set a var in nav_main.jsp and insert it in a <dfn> tag. Thats working. But I don't know if and how I can access this var in nav_side.jsp.<BR><BR>Any solutions for this?<BR><BR>Best Regards<BR>Andreas<BR>-----Ursprüngliche Nachricht-----<BR>Von: opencms-dev-bounces@opencms.org im Auftrag von Schliemann, Kai<BR>Gesendet: Fr 09.09.2011 17:48<BR>An: The OpenCms mailing list<BR>Betreff: Re: [opencms-dev] OpenCms 8 numerate Navigation Items<BR><BR>Hi Andreas,<BR><BR>I would just use ol and li-tags.<BR><BR>Something like:<BR><BR><BR><BR><style type="text/css"><BR><BR>/*<![CDATA[*/<BR><BR><BR><BR>body {<BR><BR> margin: 1em;<BR><BR> padding: 0;<BR><BR> background: #fff;<BR><BR> color: #000;<BR><BR> font: 100% Georgia, serif;<BR><BR>}<BR><BR><BR><BR>ol {counter-reset: reset;}<BR><BR>li {<BR><BR> display: block;<BR><BR>}<BR><BR>li:before {<BR><BR> content: counters(reset, ".") " " ;<BR><BR> counter-increment: reset;<BR><BR>}<BR><BR><BR><BR><BR><BR>/*]]>*/<BR><BR></style><BR><BR><ol><BR><BR> <li>test</li><BR><BR> <li>test<BR><BR> <ol><BR><BR> <li>test</li><BR><BR> <li>test<BR><BR> <ol><BR><BR> <li>test</li><BR><BR> <li>test</li><BR><BR> <li>test</li><BR><BR> </ol> <BR><BR> </li><BR><BR> <li>test</li><BR><BR> </ol><BR><BR> </li><BR><BR> <li>test</li><BR><BR> <li>test</li><BR><BR></ol><BR><BR><BR><BR>HTH<BR><BR>Regards<BR><BR><BR><BR>Kai<BR><BR><BR><BR><BR><BR>Von: opencms-dev-bounces@opencms.org [<A href="mailto:opencms-dev-bounces@opencms.org">mailto:opencms-dev-bounces@opencms.org</A>] Im Auftrag von Feuerstein Andreas<BR>Gesendet: Freitag, 9. September 2011 17:32<BR>An: The OpenCms mailing list<BR>Betreff: Re: [opencms-dev] OpenCms 8 numerate Navigation Items<BR><BR><BR><BR>Hi Kai,<BR><BR>thanks for your answer.<BR><BR>How would you then create the <dfn> Tag which schould contain <dfn>2.1.1</dfn> for instance?<BR><BR>Regards<BR>Andreas<BR><BR><BR>-----Ursprüngliche Nachricht-----<BR>Von: opencms-dev-bounces@opencms.org im Auftrag von Schliemann, Kai<BR>Gesendet: Fr 09.09.2011 16:44<BR>An: The OpenCms mailing list<BR>Betreff: Re: [opencms-dev] OpenCms 8 numerate Navigation Items<BR><BR>Hi Andreas,<BR><BR>wouldn't an ordered list (<ol>) do the trick?<BR><BR>Regards<BR><BR>Kai<BR><BR><BR><BR>Von: opencms-dev-bounces@opencms.org<BR>[<A href="mailto:opencms-dev-bounces@opencms.org">mailto:opencms-dev-bounces@opencms.org</A>] Im Auftrag von Feuerstein<BR>Andreas<BR>Gesendet: Freitag, 9. September 2011 15:37<BR>An: opencms-dev@opencms.org<BR>Betreff: [opencms-dev] OpenCms 8 numerate Navigation Items<BR><BR><BR><BR>Hi,<BR><BR><BR><BR>I would like to create a navigation that looks like the following:<BR><BR><BR><BR>1. Home<BR><BR>1.1 New home<BR><BR>1.1.1 New home sub<BR><BR>2. Item<BR><BR>3. Item 3<BR><BR><BR><BR>I would like to receive the numbers of the elements and set them in a<BR><dev> property.<BR><BR><BR><BR>Is this possible with OpenCms 8 (Template 3)?<BR><BR><BR><BR>Best Regards,<BR><BR>Andreas Feuerstein<BR><BR><BR><BR><BR></FONT></P></DIV></BODY></HTML>