When using the 'Printable Version', I still get all the [Edit] links from header sections. I also get a number of other 'site' links in the Printable Version.
How do I get rid of this so that I can get a 'clean' document?
Brett
When using the 'Printable Version', I still get all the [Edit] links from header sections. How do I get rid of this so that I can get a 'clean' document?
I can't test this right now, but adding the following to [[MediaWiki:Common.css]] should work: @media print { .editsection { display: none; } }
HTH.
-- F.
Works great! Thanks!
Can I assume there are tags for just about everything on that page? How about the other decorations, like 'From {SiteName}' and the page markers and link to page in wiki?
Thanks! Brett
On 9/18/07, Frederik Dohr fdg001@gmx.net wrote:
When using the 'Printable Version', I still get all the [Edit] links
from
header sections. How do I get rid of this so that I can get a 'clean' document?
I can't test this right now, but adding the following to [[MediaWiki:Common.css]] should work: @media print { .editsection { display: none; } }
HTH.
-- F.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Can I assume there are tags for just about everything on that page?
Pretty much - although they're not tags, but rather IDs and/or classes. For example: <div id="foo" class="bar">...</div> This would be selected/accessed like so (either is possible here): #foo { ... } .bar { ... }
How about the other decorations, like 'From {SiteName}' and the page markers and link to page in wiki?
I believe the "From {SiteName}" is "#siteSub". The other one might be ".printfooter". Just look at the HTML source, search for the text you want to hide and find the respective ID or class of the surrounding element.
if I cut and paste from the Printable Version page, I still get the [Edit] links. Any way to get them out of there?
Not without hacking the respective PHP file(s).
-- F.
On 18 Sep 2007, at 14:49, Frederik Dohr wrote:
if I cut and paste from the Printable Version page, I still get the [Edit] links. Any way to get them out of there?
Not without hacking the respective PHP file(s).
Workaround: you can remove edit links on the right for anonymous users by setting $wgDefaultUserOptions ['editsection'] = 0; and logging out before copying.
see http://www.mediawiki.org/wiki/Manual:$wgDefaultUserOptions
Oliver
oliver@gtwm.co.uk / 0845 456 1810 / 07814 828608 The Old Bank, 4 Ravenhill Rd, Swansea SA5 5AW, UK
NOTE No contracts may be concluded on behalf of GT webMarque by means of e- mail communications. The contents of this e-mail are confidential to the intended recipient at the e-mail address to which it has been addressed; it may not be disclosed to or used by anyone other than this addressee, nor may it be copied in any way. If received in error please return to sender via e-mail.
DISCLAIMER Please note that neither GT webMarque Ltd nor the sender accept any responsibility for viruses transmitted via e-mail. It is your responsibility to scan attachments (if any).
Oliver Kohll wrote:
On 18 Sep 2007, at 14:49, Frederik Dohr wrote:
if I cut and paste from the Printable Version page, I still get the [Edit] links. Any way to get them out of there?
Not without hacking the respective PHP file(s).
Workaround: you can remove edit links on the right for anonymous users by setting $wgDefaultUserOptions ['editsection'] = 0; and logging out before copying.
see http://www.mediawiki.org/wiki/Manual:$wgDefaultUserOptions
Oliver
This "disabling" option uses CSS too.
Also, looks like if I cut and paste from the Printable Version page, I still get the [Edit] links. Any way to get them out of there?
Thanks, Brett
On 9/18/07, Frederik Dohr fdg001@gmx.net wrote:
When using the 'Printable Version', I still get all the [Edit] links
from
header sections. How do I get rid of this so that I can get a 'clean' document?
I can't test this right now, but adding the following to [[MediaWiki:Common.css]] should work: @media print { .editsection { display: none; } }
HTH.
-- F.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org