Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
numbered lists
Is there any way in textile or html to skip numbers in a numbered list?
What I’m trying is to do is include some articles from a declaration and not others. ie
1. Article 1
3. Article 3
4. Article 4
8. Article 8
etc.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: numbered lists
colak wrote #339957:
Is there any way in textile or html to skip numbers in a numbered list?
Changing numbering mid-list is, I think, not possible using straight textile.
As the page on numbered lists in textile on textile-lang.com shows, you can change the start number of an ordered list, or continue from a previous list after some interim text, but changing mid-list is not directly supported by textile. So this works:
# Article 1.
#3 Article 3.
# Article 4.
#8 Article 8.
but produces three ordered lists.
Two Three things you could try:
1. Write your list using html and the value
attribute, e.g.
<ol>
<li>Article 1</li>
<li value="3">Article 3</li>
<li>Article 4</li>
<li value="8">Article 8</li>
</ol>
Or define a set of classes using the counter-reset CSS declaration and then apply those using textile:
# Article 1
#(item-3). Article 3
# Article 4
#(item-8). Article 8
Or use an alternative markup, such as a definition list:
- 1 := Article 1.
- 3 := Article 3.
- 4 := Article 4.
- 8 := Article 8.
TXP Builders – finely-crafted code, design and txp
Offline
Re: numbered lists
Thanks so much Julian.
I’ll go the html way.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Pages: 1