Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-06-14 16:25:32

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Output the articles number in the list?

I need to put in an article form a tag to output that article’s current position in an article list as a number.

Is there a plugin for this?

Offline

#2 2007-06-14 16:55:03

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: Output the articles number in the list?

The whole article list?

it’s id would work

Offline

#3 2007-06-14 16:59:28

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: Output the articles number in the list?

Doesn’t matter. I found a way around this for my task.

Offline

#4 2007-06-14 16:59:38

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: Output the articles number in the list?

Maybe this plugin: http://textpattern.org/plugins/513/xor_sectiontools

Offline

#5 2007-06-14 18:49:31

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

Re: Output the articles number in the list?

If you mean simply giving each article in the list a consecutive number (i.e. not their IDs) I’ve used this snippet in an article form before to output a simple number:

<txp:php>global $i;$i++;echo $i;</txp:php>

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB