[opencms-dev] OpenCms 8 numerate Navigation Items

Schliemann, Kai K.Schliemann at comundus.com
Fri Sep 9 17:48:00 CEST 2011


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/20110909/971b1a29/attachment.htm>


More information about the opencms-dev mailing list