[pmwiki-users] Page of sitewide recent changes

Hans design5 at softflow.co.uk
Sun May 13 11:06:57 CDT 2007


Sunday, May 13, 2007, 2:14:01 PM, Mildiner, Melvyn wrote:

> I want to show the changes as a list (a) sorted by date with the most
> recent at the top, (b) with pages referenced by title and (c) excluding
> pages such as Site.AllGroupHeader and RecentChanges.

> My problem is that some of these requirements seem contradictory.

> For example, I tried:
> (:pagelist name=RecentChanges fmt=#include:)

> but then I wanted to add fmt=#title and name=-RecentChanges

> Can someone point me in the right direction?

try this:

(:pagelist trail=Site.AllRecentChanges  list=normal fmt=#title count=50:)

showing the last 50 changes as listed on Site.AllRecentChanges.
list=normal should remove pages like GroupHeader etc.

somehow though the above fmt=#title or fmt=#titlespaced did not work
for me (why??), whereas any other like fmt=#simple or the default worked fine.

You could also try a custom format #recentchanges, add it to
Site.LocalTemplates:

!!!fmt=#recentchanges
recent changes in table format
[@
[[#recentchanges]]
(:if equal {<$Group}:)
(:table class=forum xwidth=100% cellpadding=0px cellspacing=4px :)
(:cell class=messagehead :)%thd%'''Page'''
(:cell class=messagehead :)%thd%'''Last Modified''' 
(:cell class=messagehead :)%thd%'''By''' 
(:cell class=messagehead :)%thd%'''Summary'''(:if:)
(:cellnr class=messageitem :)[[{=$FullName}|+]] 
(:cell class=messageitem :){=$LastModified}
(:cell class=messageitem :){=$LastModifiedBy} 
(:cell class=messageitem :){=$ChangeSummary}
(:if equal {>$Group}:)
(:tableend:)(:if:)
[[#recentchanges]]
@]


  ~Hans




More information about the pmwiki-users mailing list