[pmwiki-users] $PubDirUrl and $FarmPubDirUrl in recipes
Hans
design5 at softflow.co.uk
Fri Oct 26 11:54:47 CDT 2007
Friday, October 26, 2007, 5:10:22 PM, sti at pooq.com wrote:
> SDV
> ( $FoxPubListFmt
> , array
> ( 'pub/css/fox/fox.css' => '$PubDirUrl/css/fox/fox.css'
> , '$FarmD/pub/css/fox/fox.css' => '$FarmPubDirUrl/css/fox/fox.css'
> )
> );
> .....
Have you got a specific reason for putting fox/fox.css into the css/
directory? I know it is a css file, put as I've seen most recipes put
their public-browser stuff into a directory under pub/.
I could put this into fox.php:
SDV($FoxCssFmt, "fox/fox.css");
SDVA($FoxPubListFmt, array (
"pub/\$FoxCssFmt" => "$PubDirUrl/\$FoxCssFmt",
"$FarmD/pub/\$FoxCssFmt" => "$FarmPubDirUrl/\$FoxCssFmt" ));
then the path could still easily be modified by changing $FoxCssFmt.
I wonder though if we could not have some workable PmWiki default.
All it really needs I think is a line near the top of the
sample-config.php file:
SDV($FarmPubDirUrl,$PubDirUrl);
Then it would not matter if a recipe's css file is put into pub/ or
$Farm/pub. And if a farm gets created a line in farmconfig.php
would set $FarmPubDirUrl, so the wiki config.php will not set it
(because of SDV).
Has this been requested before? Does it need a PITS
entry (I shy away from PITS if I can help it, sorry).
~Hans
More information about the pmwiki-users
mailing list