This didn't work. When I included if='exists {=$FullName}' and changed
the template to your version, my table was broken in three ways:

1. I had an extra row before each entry "template exists" (or something
similar).
2. I had an entry in the summary column for every page - an increasing
count.
3. My non-existent pages returned with their edit links.


Regards,
Melvyn


-----Original Message-----
From: Patrick R. Michaud [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 16, 2007 5:11 PM
To: Hans
Cc: Mildiner, Melvyn; [email protected]
Subject: Re: [pmwiki-users] Page of sitewide recent changes

On Tue, May 15, 2007 at 11:56:42AM +0100, Hans wrote:
> Also, to exclude page links to non-existing pages, try this template:
> (I did not get it right first time emailing you, but the following I
> tested!).
> ...

Starting with 2.2.0-beta45, one can also use the "if=" option
to pagelist to exclude non-existent pages:

  (:pagelist if='exists {=$FullName}' ... :)

This is *much* more efficient than doing the exclusion in
the pagelist template.

Also, Hans' template can be rewritten as:

  [[#recentchanges]]
  (:template first:)
  (:table class=forum width=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'''
  (:template each:)
  (:cellnr class=messageitem :)[[{=$FullName}|+]] 
  (:cell class=messageitem :){=$LastModified}
  (:cell class=messageitem :){=$LastModifiedBy} 
  (:cell class=messageitem :){=$ChangeSummary}
  (:template last:)
  {$$PageCount}
  (:tableend:)
  [[#recentchangesend]]

Pm

__________________________________________________________________________________________
This electronic message contains information from Verint Systems, which may be 
privileged and confidential. 
The information is intended to be for the use of the individual(s)or entity 
named above. 
If you are not the intended recipient, be aware that any disclosure, copying, 
distribution or use of the contents of this information is prohibited. 
If you have received this electronic message in error, please notify us by 
replying to this email (1).


_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to