<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>AW: [opencms-dev] OpenCms 8 numerate Navigation Items</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hi Paul,<BR>
<BR>
thanks for this hint!<BR>
<BR>
It's working with your suggestion.<BR>
<BR>
Best regards,<BR>
Andreas<BR>
<BR>
<BR>
-----Ursprüngliche Nachricht-----<BR>
Von: opencms-dev-bounces@opencms.org im Auftrag von Paul-Inge Flakstad<BR>
Gesendet: Di 13.09.2011 14:56<BR>
An: The OpenCms mailing list<BR>
Betreff: Re: [opencms-dev] OpenCms 8 numerate Navigation Items<BR>
<BR>
Hi Andreas,<BR>
<BR>
Have you tried using request.setAttribute() on your "first" JSP and request.getAttribute() on your "second" JSP?<BR>
<BR>
Best regards,<BR>
Paul<BR>
<BR>
________________________________<BR>
From: opencms-dev-bounces@opencms.org [<A HREF="mailto:opencms-dev-bounces@opencms.org">mailto:opencms-dev-bounces@opencms.org</A>] On Behalf Of Feuerstein Andreas<BR>
Sent: 13. september 2011 09:18<BR>
To: The OpenCms mailing list<BR>
Subject: Re: [opencms-dev] OpenCms 8 numerate Navigation Items<BR>
<BR>
Hi guys,<BR>
<BR>
no ideas or do I have to provide more information?<BR>
<BR>
Regards,<BR>
Andreas<BR>
________________________________<BR>
Von: opencms-dev-bounces@opencms.org im Auftrag von Feuerstein Andreas<BR>
Gesendet: Sa 10.09.2011 10:09<BR>
An: The OpenCms mailing list<BR>
Betreff: Re: [opencms-dev] OpenCms 8 numerate Navigation Items<BR>
<BR>
<BR>
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>
<BR>
</FONT>
</P>
</BODY>
</HTML>