[pmwiki-users] $PubDirUrl and $FarmPubDirUrl in recipes
sti at pooq.com
sti at pooq.com
Fri Oct 26 12:18:54 CDT 2007
Hans wrote:
> 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/.
No reason, other than I thought that's where fox was expecting to find it, as
far as I could tell from the documentation.
> 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.
Not necessary. When someone has a sufficiently non-standard setup, they can
always just set $FoxPubListFmt as they wish (and using SDV, not SDVA was
deliberate. There has to be a way of removing entries from $FoxPubListFmt.)
> 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);
It can't work. I have a Site-wide farm with fields managed by individual
users. Thus both $FarmPubDirUrl and $PubDirUrl are valid places to look for
stuff. If *I* install fox in the farm, it will be found one place, and if
*they* install it in their individual fields, it will be found in the other
place. The only way to handle that is to do a search.
I can't think of any recipe one could create that would end up being much
smaller to use than what I wrote above, either.
More information about the pmwiki-users
mailing list