[pmwiki-users] Pagelist with alternate formatting per item

Simon nzskiwi at gmail.com
Thu Jun 10 04:06:46 CDT 2010


I'd like alternative links in a pagelist to be formatted differently (to
help distinguish them)

Something like this

(:template each:)
(:if even {$$PageCount} :)
* [[{=$Group}/{=$Name} | {=$Titlespaced}]]
(:else:)
* [[{=$Group}/{=$Name} | {=$Titlespaced}]] %item navy%
(:ifend:)


Of course there is not an "even" (or an "odd") conditional
markup<http://pmwiki.org/wiki/PmWiki/ConditionalMarkup>
 condition.

Has anyone some suggestions on how I could achieve this?

thanks

Simon

PS what do you think about have an extension to pagelist for conditions, eg

(:template if <markup
expression<http://pmwiki.org/wiki/PmWiki/ConditionalMarkup#combiningconditions>>
:)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20100610/c752bfda/attachment.html>


More information about the pmwiki-users mailing list