[pmwiki-users] detect even and odd values of the {$$pagecount} variable

Dominique Faure dominique.faure at gmail.com
Thu May 24 14:16:12 CDT 2007


On 5/24/07, Martin Fick <mogulguy at yahoo.com> wrote:
[...]
> On the pmwiki site, a nice effect is achieved here:
> http://www.pmwiki.org/wiki/Cookbook/Administration
>
> using the template here:
> http://www.pmwiki.org/wiki/Cookbook/RecipeList
>
> [#recipelist]]
> (:template defaults list=recipes class=recipelist:)
> (:template first:)
> ||cellspacing=0 width=100%
> ||!Name        ||!Summary     ||!Rating ||
> (:template each:)
> ||[[{=$Name}]] ||{=$:Summary} (:if ! equal
> {=$:Version}:)[-(version: {=$:Version})-](:ifend:)
> ||[-{=$Rating}-] ||
> [[#recipelistend]]
>
> but I'm not sure how?  I'm guessing that
> class=recipelist has a special definition somewhere
> that does this using the class='indn' put on each tr?
> I you look at the html source, the trs are numbered
> from ind1 to ind4 "<tr class='ind1'>", I don't know
> how this is achieved either?
>
> -Martin
>

You may have a look at:

http://www.pmwiki.org/wiki/Cookbook/FormattingTables

Dominique



More information about the pmwiki-users mailing list