[pmwiki-users] skinchange and print skins

Hans design5 at softflow.co.uk
Fri Dec 7 11:27:35 CST 2007


Friday, December 7, 2007, 5:20:19 PM, Chris Lott wrote:

> Is there a way to specify print skins when allowing users to choose skins?

> For instance, the lean skin uses this config:
> $Skin = 'lean';
> $ActionSkin['print'] = 'lean/print';

> I can preview/set the skin with
> [[{$Name}?skin=lean]]
> and
> [[{$Name}?setskin=lean]]

> But the print skin remains the default?

yes, it is set separately.

If you need different print skins tied to differnent skins you could
perhaps use something like this:

if ($Skin=='lean')
   $ActionSkin['print'] = 'lean/print';

for any custom action skins.


  ~Hans




More information about the pmwiki-users mailing list