[pmwiki-users] PagelistTemplate format invoked from search action
Pico
pmwiki at ben-amotz.com
Sat Jun 3 10:21:59 CDT 2006
I'm playing around with PageListTemplates that iterate over the
$LastModifiedBy variable. They work fine when invoked from a pagelist
directive, but time out when I try to invoke it from a link with a
search action. See Test/PagesLastModifiedByYou.
Question 1
In terms of processing, is a pagelist directive more efficient than a
search action, or is there some difference between the way these are
processed that could account for the time outs that I am experiencing
with a search action, but not with a page list?
Question 2
Is there something wrong with the way I constructed my search action?
Here is the background:
1. The PageListTemplate is contained in the same page that is calling
the directive
2. The pagelist directive is stated as follows: (:pagelist
fmt={$Name}#lastmodbyme:)
3. The search action is stated as:
[[{$Name}?action=search&q=fmt={$Name}#lastmodbyauthor]]
4. The resulting url appears as:
http://[Path/To/Page]?action=search&q=fmt=[Page]#lastmodbyauthor
Here is the same info with specific details
1. Test/PagesLastModifiedByYou
contains the following template:
[[#lastmodbyauthor]]
(:if equal {=$LastModifiedBy} {$Author}:)
#[[{=$Group}.{=$Name}]] . . . {=$LastModifiedHost} . . .
{=$LastModified} (:if:)
[[#lastmodbyauthorend]]
2. (:pagelist fmt={$Name}#lastmodbyauthor:)
3. [[{$Name}?action=search&q=fmt={$Name}#lastmodbyauthor|Pages last
modified by {$Name}]]
4.
http://pmwiki.org/wiki/Test/PagesLastModifiedByYou?action=search&q=fmt=PagesLastModifiedByYou#lastmodbyauthor
Pico
By the way, if you are interested, here is a variation of the
PagelistTemplate format that could be included in your Profile page
[[#lastmodbyme]]
(:if equal {=$LastModifiedBy} {$Name}:)
#[[{=$Group}.{=$Name}]] . . . {=$LastModifiedHost} . . . {=$LastModified}
(:if:)
[[#lastmodbymeend]]
(:pagelist fmt={$Name}#lastmodbyme:)
See Profiles/Pico
More information about the pmwiki-users
mailing list