[pmwiki-users] Recent Changes customisation

Patrick R. Michaud pmichaud at pobox.com
Mon Mar 14 08:25:32 CST 2005


On Mon, Mar 14, 2005 at 08:09:25PM +1300, Simon wrote:
> 2 questions
> Q1
> I have in config.sys
>  $RecentChangesFmt['Main.LastChanged'] = '* [-[[$Group.$Name]]-]  ';
> 
> I want to suppress the group name and have tried
>  $RecentChangesFmt['Main.LastChanged'] = '* [-[[$Group/$Name]]-]  ';
> and
>  $RecentChangesFmt['Main.LastChanged'] = '* [-[[($Group.)$Name]]-]  ';

The correct format is your second one -- i.e.:

   $RecentChangesFmt['Main.LastChanged'] = '* [-[[$Group/$Name]]-]  ';

Note that this doesn't change the format of existing RecentChanges
entries, just any new ones that are added to the page.

> Q2
> can I simplay change the default so that the RecentChanges page of every 
> group is in fact an AllRecentChages page?

No, but you can eliminate the per-group RecentChanges pages and simply
have an AllRecentChanges page.  You can also get every non-existent
RecentChanges page to default to AllRecentChanges:

    if (substr($pagename, -14) == '.RecentChanges') 
      $DefaultPageTextFmt = '(:include Main.AllRecentChanges:)';

Pm




More information about the pmwiki-users mailing list