[pmwiki-users] Different template for individual pages?

H. Fox haganfox at users.sourceforge.net
Sun Feb 12 15:23:46 CST 2006


On 2/11/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>
> In general, in a config.php file I think it's better to use '=' instead
> of SDV() to set variables.  (There are exceptions.)  I would've written
> the above as:
>
>     $Skin = 'light';
>     $pagename = ResolvePageName($pagename);
>     if ($pagename == 'Main.WikiSandbox') $Skin = 'pmwiki';
>
> The difference is simply one of surprise -- an administrator who
> already has a $Skin = '...'  line in the config.php might be
> surprised when the SDV() code (added to the end of config.php)
> seems to have no effect.
>
> Similarly, a farmconfig.php might set a $Skin='...' value, in which
> case the SDV() version above would seem to not do anything.

I got the idea to use SDV() from you.  :-)

http://pmichaud.com/pipermail/pmwiki-users/2005-August/015909.html

Using SDV() is only advisable under rare circumstances, then?

Hagan




More information about the pmwiki-users mailing list