Re: [pmwiki-users] href="a group's last edited page", or pagelist results in template files

2011-01-16 Thread DaveG


On 1/16/2011 7:57 AM, viki.ve...@gmail.com wrote:

I hope this makes clearer what I mean with: ``in a template, is it
possible to retrieve the address of a group's last edited page?''
Yes. You include a PmWiki page, which contains a pagelist as Kathyrn 
described. For an example, specifically of finding the last edited page 
in a group, take a look at the Skidoo skin, which displays this type of 
information in tabs on the skin.


The Site.Skidoo-Tabs, which has a section which contains:
  (:pagelist group=-{$SiteGroup},-PmWiki 
trail={$SiteGroup}.AllRecentChanges count=40 list=normal 
fmt=#Skidoo_MRU_Group_List group={$Group}:)



Which you could adapt, something like this in a file Site.LatestEditedPage:
  (:pagelist group=-{$SiteGroup},-PmWiki 
trail={$SiteGroup}.AllRecentChanges count=1 list=normal group={$Group}:)


You can then include from the.tmpl file:
  

 ~ ~ Dave

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] href="a group's last edited page", or pagelist results in template files

2011-01-16 Thread viki.ve...@gmail.com



On 01/15/2011 11:15 PM, Kathryn Andersen wrote:

On Sat, Jan 15, 2011 at 08:11:25PM +0100, viki.ve...@gmail.com wrote:

Is it possible to get at the results of a pagelist from within
template files? Specifically, in a template file, what would be one
way of retrieving the address of a group's last edited page?


You can put a (:pagelist ...:) call inside a pagelist template, if
that's what you're asking.

Or, if you're asking about skin templates, the simplest way of doing
that is to include a specific page in the skin, and define the pagelist
in that page.



Not quite.
Sorry! My mistake... the previous message was not clear :-)

On the wiki, I want to have a link that points a group's last edited 
page. In the template, I have this type of statements:






Where,
the content of the FindLastEditIn/MyGroup page is simply a pagelist:
(:pagelist order=-time count=1 fmt=#include list=normal group=mygroup:)

For several reasons, I want to skip the extra FindLastEditIn/MyGroup 
page. In the template, I would want to write something along the lines of:






I hope this makes clearer what I mean with: ``in a template, is it 
possible to retrieve the address of a group's last edited page?''


Best!
-i

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users