Patrick R. Michaud <pmichaud <at> pobox.com> writes: > > On Mon, Apr 02, 2007 at 07:44:52PM +0200, Anno wrote: > > > In local/config.php: > > > > > > $ActionSkin['print'] = 'yourprintskin'; > > > > > > This says to use 'yourprintskin' for ?action=print instead of the default. > > > > This page > > http://www.pmichaud.com/wiki/PmWiki/SkinTemplates > > doesn't mention the $ActionSkin variable. Does it need to be updated? > > I think it probably belongs in PmWiki.Skins more than PmWiki.SkinTemplates, > since a skin or skin template cannot set $ActionSkin (at least, it can't > do it and have much of a useful effect). > > And we should probably mention it on PmWiki.LayoutVariables . > > Pm >
PmWiki/SkinTemplates already has: if ($GLOBALS['action'] == 'print') LoadPageTemplate($pagename, "$SkinDir/print.tmpl"); More than one way to skin the cat? Is one method better than the other? Hmmm, $ActionSkin[]. I take it we can have different skins for browse, edit, print, history ? That's a nifty bit of flexibility and foresight in the programming. Sandy _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
