[pmwiki-users] $PubDirUrl and $FarmPubDirUrl in recipes

Hans design5 at softflow.co.uk
Sun Nov 11 03:34:19 CST 2007


Saturday, November 10, 2007, 7:36:30 PM, Hans wrote:

> how about this, it seems to work:

> SDV($CommentBoxPlusUrl,
>     (substr(__FILE__, 0, strlen($FarmD)) == $FarmD)
>     ? "{$FarmPubDirUrl}/commentboxplus" : "{$PubDirUrl}/commentboxplus");

Sorry, it does not work. I was too superficial with my test.
What thrown my off your correct advise was the mention of FmtPageName,
as i thought we need to use it explicitly on all strings which
include the recipes url variable. Obvious from looking at wsplus.php
this is not needed, so FmtPageName must work somewhere behind the
scenes? I can't see it and I do not understand your mention of it.


  ~Hans




More information about the pmwiki-users mailing list