If you're not doing anything special with the numbering you can do it
straight HTML (or CSS).
ul == unordered list
ol == ordered list
If you use an <ol> tag instead it will automagically number each bullet for
you. The 'type' paramater, or CSS 'list-style:', allows you to select what
type of numbering system you want.
Type | CSS Keyword | Example
--------------------------------------
1 decimal 1. 2. 3. 4.
a lower-alpha a. b. c. d.
A upper-alpha A. B. C. D.
i lower-roman i. ii. iii. iv.
I upper-roman I. II. III. IV.
Decimal is the default for an ordered list so doesn't have to be declared.
Technically with CSS you can us <ul> and still do numbering but it doesn't
make much sense.
I had to do a bunch of online forms for a legal form which would have driven
me insane if not for <ol>'s automatic numbering.
-----Original Message-----
From: Sam Tregar [mailto:[EMAIL PROTECTED]]
Sent: September 14, 2001 16:08
To: Kenny Smith
Cc: Htmltmpl@Lists. Vm. Com
Subject: Re: [htmltmpl] Do TMPL_LISTS have an implicit counter?
On Fri, 14 Sep 2001, Kenny Smith wrote:
> I'm looking for something simliar to the loop_context_vars __ODD__,
__LAST__
> etc, but one that is what number the element is in the loop. I want to
> display a list of things with numbered bullets..
>
> 1) stuff
> 2) stuff
> 3) etc...
No, nothing like that is built in. It's too simple to do yourself! When
you're building your loop array, just do:
$row->{counter} = $counter++;
-sam
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]