Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2025-07-02 07:03:44

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,193
Website GitHub Mastodon Twitter

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

#2 2025-07-02 08:09:33

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,934
Website GitHub

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

#3 2025-07-02 14:05:10

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,193
Website GitHub Mastodon Twitter

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

Board footer

Powered by FluxBB