[pmwiki-users] Custom Pagelist Templates and site URL path?

LernAway lernaway at gmail.com
Wed Dec 19 09:16:40 CST 2012


Thanks Gilles and Petko,

That sent me in the right direction.

I was able to use...

$FmtPV['$Imagedir'] = "'http://My_Domain.com/uploads/' . '{' . '\$Group' . '}/'";

...in config.php

Then for the custom pagelist template use...

[@
[[#thumblist5]]
(:if equal {<$Group}:)
>>lframe width=130pct<<
(:if:)\
<div id="thumb">
[[{=$Imagedir}/{=$Name}/{=$:image}"{=$Title}" -> {=$FullName}]]
</div>
(:if equal {>$Group}:)
>><<
[[#thumblist5]]
@]

I needed to make a few calls to that directory with other custom pagelist templates so it makes sense to define the path in one place (i.e. config.php)


More information about the pmwiki-users mailing list