[pmwiki-users] Group- or page-dependent ?action=print
Steve Glover
Steve.Glover at jisc.ac.uk
Wed Sep 2 03:37:19 PDT 2020
Hi Petko,
That's fantastic - many thanks!
Cheers
Steve
-----Original Message-----
From: Petko Yotov <5ko at 5ko.fr>
Sent: 01 September 2020 18:49
To: Steve Glover <Steve.Glover at jisc.ac.uk>
Cc: pmwiki-users at pmichaud.com
Subject: Re: [pmwiki-users] Group- or page-dependent ?action=print
On 01/09/2020 19:24, Steve Glover wrote:
> Is there a way that I could have a different default print skin for
> each group or for unusually complex individual pages, please?
You can place in local configuration in a local/Group.php or local/Group.Page.php something like:
$ActionSkin['print'] = 'my-print-skin';
Where you copy the directory pub/skins/print to pub/skins/my-print-skin and adapt it for your needs.
Petko
P.S. Recently I've mostly added CSS with "@media print {}" queries because in my observation people tend to not notice the "print page"
link but know how to use "File-Print", "File-Print preview" or "Ctrl+P"
on their browser. The CSS removes the sidebar and other unneeded elements, and removes width restrictions and margins from the page.
--
If you upgrade : http://www.pmwiki.org/Upgrades
More information about the pmwiki-users
mailing list