[pmwiki-users] New PageListTemplate to simulate RecentChanges
Daniel Scheibler
scheibi at gmail.com
Thu Nov 10 01:41:44 CST 2005
Hello,
2005/11/10, Martin Fick <fick at fgm.com>:
> One way to avoid having to do this is by using a
> RecentChanges group. In the RecentChanges.GroupHeader you
> put a pagelist that uses the group={$Name} option and points
> to a template with whatever format you would like to see
> your RecentChanges in and voila: a reverse RecentChanges
> lookup group!
nice idea.
> Now, to see your new fancy Foo.RecentChanges you would go
> to RecentChanges.Foo instead. With this solution you do not
> have to create a pagelist for each group in your site. You
> will however have to so some fancy conditional stuff to be
> able to use it for AllRecentChanges. I have done a mockup
> here:
>
> http://www.theficks.name/test/PLT/pmwiki.php?n=RecentChanges.SiteAll
>
> Try it out and replace the SiteAll with another group name
> such as Test.
>
>
> Using this method you can also "piggyback" off of the
> real RecentChanges pages. In the RecentChanges.GroupHeader
> you put a pagelist that uses the trail={$Name}.RecentChanges
> option instead. This now reads the real RecentChanges page
> to figure out which pages to list. This has the advantage
> that it will track the real RecentChanges and reflect
> excatly the same pages as it. Another major advantage is
> that this will not suffer the performance hit that a real
> pagelist will suffer! You can see a mockup of this here:
>
> http://www.theficks.name/test/PLT/pmwiki.php?n=RecentChangesPiggyBack.PageList
>
>
> Note the minor glitch of having a none existing page put:
>
> Describe <pagename>? here.
>
> It would be neat to have a markup that you could put in a
> GroupHeader that would kill this.
simple put
$DefaultPageTextFmt = "";
in your local/RecentChanges.php
and at all empty pages in group RecentChanges no
Describe <pagename>? here.
will shown.
Greets,
scheiby.
--
Daniel Scheibler ========:} student at
eMail: scheibi at gmail.com BTU Cottbus/Germany
WWW: http://www.scheiby.de
More information about the pmwiki-users
mailing list