[pmwiki-users] Pagelist favoring one group over another

Patrick R. Michaud pmichaud at pobox.com
Sun Jan 2 13:01:54 CST 2011


On Sun, Jan 02, 2011 at 11:30:13AM -0500, Ben Wilson wrote:
> I have a simple pagelist:
> 
> (:pagelist group=A,B name=2* order=name:)
> 
> It first lists all group A then all group B. I would rather it list
> all by name, interweaving groups.
> 
> Thoughts?

The "order=name" means the full name of the pages, which includes the group
portion.  At one point we discussed using "order=fullname" to mean group+name,
and leave "order=name" for "name only", but decided that ordering by group
was the far more common case and deserved to be the shorter one.

You should be able to do "order=$Name,$Group", which will
sort alphabetically by name only (without the group), and then by 
group if there are any identical names.  The ability to use page
variables for sorting is describe briefly in the order= option
of http://www.pmwiki.org/wiki/PmWiki/PageLists.

Hope this helps!

Pm



More information about the pmwiki-users mailing list