[pmwiki-users] (:pagelist trail=...:) feature request
Dominique Faure
dominique.faure at gmail.com
Tue Feb 21 04:58:08 CST 2006
Hi,
Playing with (:pagelist fmt=... trail=...:) to have customized
trailers, I found that it would be nice to apply the following patch:
diff C3 C:\WebOnKey\htdocs\pmwiki-2.1.beta26\scripts\pagelist.php
C:\WebOnKey\htdocs\PM\scripts\pagelist.php
*** C:\WebOnKey\htdocs\pmwiki-2.1.beta26\scripts\pagelist.php Thu Feb
16 07:53:40 2006
--- C:\WebOnKey\htdocs\PM\scripts\pagelist.php Tue Feb 21 11:40:44 2006
***************
*** 172,177 ****
--- 172,179 ----
$readf += $searchterms; # forced read if incl/excl
if (@$opt['trail']) {
+ global $FmtPV;
+ $FmtPV['$Trail'] = "'".$opt['trail']."'";
$trail = ReadTrail($pagename, $opt['trail']);
$list = array();
foreach($trail as $tstop) {
This allows to use the {$Trail} variable in trail related pagelist
templates to link back to the trail reference list:
[@
[[#trailA]]
(:if equal {$FullName} {=$FullName}:)<< [[{<$FullName}|+]] |
[[{$Trail}|+]] | [[{>$FullName}|+]] >>(:if:)
[[#trailAend]]
@]
(:markup:) [@(:pagelist fmt=Trail.GroupFooter#trailA trail=Trail.List:)@]
Could you please provide something equivalent in next release?
Regards,
Dom
More information about the pmwiki-users
mailing list