[Pmwiki-users] Suggestions for Template Improvements
Patrick R. Michaud
pmichaud
Thu Feb 26 10:53:10 CST 2004
> > Finally, it is fairly simple to implement a short cookbook recipe that
> > can go in config.php and does exactly what you've described above:
> >
> > SDV($PageCSSListFmt,array(
> > 'pub/skins/$Group/$Group.css' => '$PubDir/skins/$Group/$Group.css'));
> > $tmpl = FmtPageName('pub/skins/$Group/$Group.htm',$pagename);
> > if (file_exists($tmpl)) $PageTemplateFmt = $tmpl;
>
> My great disappointment has been aleviated by this sweet code.
> [...]
> Only one thing, the CSS part doesn't seem work quite right.
> [...]
> <10 minutes later> ... It seems to be a problem with pmwiki core.
Nope, it's a problem in the code I sent to the list. $PubDir in the second
line should've been $PubDirUrl (I keep making that mistake--old habit).
So the code should read
SDV($PageCSSListFmt,array(
'pub/skins/$Group/$Group.css' => '$PubDirUrl/skins/$Group/$Group.css'));
$tmpl = FmtPageName('pub/skins/$Group/$Group.htm',$pagename);
if (file_exists($tmpl)) $PageTemplateFmt = $tmpl;
Pm
More information about the pmwiki-users
mailing list