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

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



On 01/16/2011 06:01 PM, DaveG wrote:


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:
!--wiki:{$SiteGroup}.LatestEditedPage--

~ ~ Dave


Kathyrn, Dave, thanks,
a lot.

mmh... I'm not being clear. My mistake. Again:

I'm looking for something that I can point the href of my anchor tags 
to. I'm starting to daydream that this `something' is a variable defined 
in a PHP file in my skin. Maybe it's a variable, maybe it's something 
else, maybe it's not possible :-)


The relevant anchors of my skin look like:
a href={$ScriptUrl}/FindLastEditIn/MyGroup
!--wiki:Main.AboutMyGroup--
/a
The contents of FindLastEditIn/MyGroup are in my previous mail.

I would like to change this to:
a href=$Something
!--wiki:Main.AboutMyGroup--
/a
where `$Something' is such that clicking this link takes the user to 
MyGroup's last edited page.


Dave: maybe I'm missing something in your suggestion, but I don't know 
if it's what I'm looking for. Some clarifications:


Main.AboutMyGroup is a page that is not necessarily related to the 
pagelist/search in question. There are no a elements in the 
Main.AboutMyGroup page. The a/a opening and closing tags go around, 
and are external to Main.AboutMyGroup. This page is simply a chunk of 
HTML caught inside of an a tag, like above:

a href=$Something!--wiki:Main.AboutMyGroup--/a

Again, thanks!
-i

___
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:


a href={$ScriptUrl}/FindLastEditIn/MyGroup
!--wiki:Main.AboutMyGroup--
/a

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:


a href=(:pagelist order=-time count=1 list=normal group=mygroup:)
!--wiki:Main.AboutMyGroup--
/a

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


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:
  !--wiki:{$SiteGroup}.LatestEditedPage--

 ~ ~ Dave

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


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

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

Dear list,

In one of my template files,
I would like to have a link to a Group's last edited page. I would want 
to write something like the following pseudocode:


a href=(:pagelist order=-time count=1 list=normal group=mygroup:)My 
Group/a


I'm simplifying things because `My Group' is not simply two words. It's 
a chunk of HTML, and I'm having problems writing a custom pagelist 
template for it :-)


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?


Thanks!
-i

___
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-15 Thread Kathryn Andersen
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.

-- 
 _--_|\ | Kathryn Andersen  http://www.katspace.org
/  \| 
\_.--.*/| http://kerravonsen.dreamwidth.org/
  v | http://kerravonsen.redbubble.com/
| Melbourne - Victoria - Australia - Southern Hemisphere
Maranatha!  |   - Earth - Sol - Milky Way Galaxy - Universe

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