[pmwiki-users] Print skins
Dominique Faure
dominique.faure at gmail.com
Mon Oct 8 01:47:24 CDT 2007
On 10/8/07, DaveG <pmwiki at solidgone.com> wrote:
> > The line ordinarily goes in config.php, not skin.php. Probably by the
> > time skin.php is included it's too late to specify a print skin.
> That's the conclusion I came to. I was trying to minimize the changes
> that need to be made when installing my Skidoo skin by wrapping
> everything up into skin.php, and having the only change in config.php be
> the $Skin = "skidoo" command.
>
> Unfortunately I had to move a number of commands out of skin.php, and
> into config.php. It's a simple copy and paste into config.php, but it
> just seemed cleaner to minimize it.
>
> Here's what ended up going into config.php:
> $Skin = 'skidoo';
> if(function_exists(detect_mobile_device) && detect_mobile_device()) {
> $Skin = 'skidoo/PDA';
> }
> SDV($ActionSkin['print'], 'skidoo/PDA');
>
>
You could always "force" it with something like below in your own
skin.php (directly taken from the recurve skin code):
global $action;
if ($action == 'print') {
LoadPageTemplate($pagename,"$SkinDir/print.tmpl");
return;
}
--
Dominique
More information about the pmwiki-users
mailing list