[opencms-dev] OpenCms 8 numerate Navigation Items

Feuerstein Andreas andreas.feuerstein at solvistas.at
Sat Sep 10 10:09:52 CEST 2011


Hi Kai,

thanks for your answer!

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:

<ul>
<li>first entry</li><dfn>1</dfn>
<li>second entry</li><dfn>2</dfn>
<li>third entry</li><dfn>3</dfn>
</ul>

<ul>
<li>first subentry</li><dfn>1.1</dfn>
<li>second subentry</li><dfn>1.2</dfn>
<li>third subentry</li><dfn>1.3</dfn>
</ul>

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.

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.

Any solutions for this?

Best Regards
Andreas
-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org im Auftrag von Schliemann, Kai
Gesendet: Fr 09.09.2011 17:48
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] OpenCms 8 numerate Navigation Items
 
Hi Andreas,

I would just use ol and li-tags.

Something like:

 

<style type="text/css">

/*<![CDATA[*/

 

body {

  margin: 1em;

  padding: 0;

  background: #fff;

  color: #000;

  font: 100% Georgia, serif;

}

 

ol {counter-reset: reset;}

li {

  display: block;

}

li:before {

  content: counters(reset, ".") " " ;

  counter-increment: reset;

}

 

 

/*]]>*/

</style>

<ol>

                <li>test</li>

                <li>test

                               <ol>

                                               <li>test</li>

                                               <li>test

                                                               <ol>

                                                                              <li>test</li>

                                                                              <li>test</li>

                                                                              <li>test</li>

                                                               </ol>     

                                               </li>

                                               <li>test</li>

                               </ol>

                </li>

                <li>test</li>

                <li>test</li>

</ol>

 

HTH

Regards

 

Kai

 

 

Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Feuerstein Andreas
Gesendet: Freitag, 9. September 2011 17:32
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] OpenCms 8 numerate Navigation Items

 

Hi Kai,

thanks for your answer.

How would you then create the <dfn> Tag which schould contain <dfn>2.1.1</dfn> for instance?

Regards
Andreas


-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org im Auftrag von Schliemann, Kai
Gesendet: Fr 09.09.2011 16:44
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] OpenCms 8 numerate Navigation Items

Hi Andreas,

wouldn't an ordered list (<ol>) do the trick?

Regards

Kai



Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Feuerstein
Andreas
Gesendet: Freitag, 9. September 2011 15:37
An: opencms-dev at opencms.org
Betreff: [opencms-dev] OpenCms 8 numerate Navigation Items



Hi,



I would like to create a navigation that looks like the following:



1. Home

1.1 New home

1.1.1 New home sub

2. Item

3. Item 3



I would like to receive the numbers of the elements and set them in a
<dev> property.



Is this possible with OpenCms 8 (Template 3)?



Best Regards,

Andreas Feuerstein




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20110910/792b6a86/attachment.htm>


More information about the opencms-dev mailing list