From the Eliovir

Pm Wiki: Page List Templates-Talk

I’ve added a PITS entry for a proposed addition to the (:template ...:) markup. More specifically, I think we should be able to say (:template ! first {=$Group}:) in order to eg. add markup before each item except for the first. Currently to achieve this you need to use (:if equal {=$Group} {<$Group}:), which seems a bit clumsy as most other similar markup has been deprecated. The PITS entry also includes the required changes to scripts/pagelist.php. —Eemeli Aro July 29, 2009, at 08:19 AM

Questions

Q How can I achieve adding a table column only when pagelist outputs something?

There is now a wrap option to (:pagelist:) to allow it to return the markup to the enclosing page, as opposed to rendering it standalone.

Q Can I use page variables, or even PTVs, in the (:template defaults:) section?

They seem not to work as of 2.2.6. I’d like to do (:template defaults group={*$Group}:) or similar. Maxim October 11, 2009, at 08:24 AM

Please see, and vote for PITS.00986

Copyright © 2005–2025 the Main wiki and its authors

Retrieved from http://eliovir.free.fr/index.php5/PmWiki/PageListTemplates-Talk

Page last modified on October 14, 2009, at 02:29 AM EST