[pmwiki-users] Pagelists formatting

Tegan Dowling tmdowling at gmail.com
Mon Aug 27 08:03:05 CDT 2007


On 8/27/07, Ashwin <pmwiki.20.PACSPA at spamgourmet.com> wrote:
> All,
> I am trying to create a customized pagelist format under
> Site.LocalTemplates to format the following:
>
> ******************************************
> Recent Additions to Calendar:
>     * 20070820
>     * 20070829
>     * 20070818
>     * 20070808
> ******************************************
>
>
>
> to something like this:
>
> ******************************************
> Recent Additions to Calendar:
>     * Aug 20, 2007
>     * Aug 29, 2007
>     * Aug 18, 2007
>     * Aug 8, 2007
> ******************************************

I think you may be able to customize what I'm using ... have a look at
the sidebar and groupheader that are visible from
http://www.mkeurbanag.org/Calendar/20070819

On http://www.mkeurbanag.org/Calendar/SideMenu I have

******************************************
(:pagelist group={$Group} fmt=#datenames list=normal order=-name
name=-HomePage:)
******************************************

and in the Site/LocalTemplates page, I have

******************************************
----

[@
[[#datenames]]
* [[{=$FullName}|{(ftime '%a, %d %b, %Y' {=$Name})}]]
[[#datenamesend]]
@]

----
******************************************

In Calendar/GroupHeader, I have

******************************************
!(:if name 20[0-9][0-9]*:){(ftime '%A, %d %B, %Y' {$Name})} (:if !
name  20[0-9][0-9]*:){$Titlespaced}


(:ifend:)
******************************************

These rely on {(ftime ...)}, which is provided by the recipe
http://www.pmwiki.org/wiki/Cookbook/MarkupExpressions

as announced in PM's message to the list entitled "{(...)} markup
recipe available", of April 11, 2007

and also rely on instructions I received in the exchange following the
questions I posted in that same thread beginning April 13, 2007


Hope that helps.

Tegan



More information about the pmwiki-users mailing list