Last modified: 2013-03-13 11:36:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T41117, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39117 - Config setting to remove printable version link
Config setting to remove printable version link
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.19
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-08 00:06 UTC by Steve
Modified: 2013-03-13 11:36 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Steve 2012-08-08 00:06:46 UTC
There is no config setting to remove the printable version link from the toolbox. Default it to true and allow folks to use as such:

$wgPrintableVersionLink = false;
Comment 1 Sam Reed (reedy) 2012-08-08 00:20:11 UTC
Should be trivially do-able by inserting a usage or 2 into SkinTemplate, and one into SkinLegacy
Comment 2 db [inactive,noenotif] 2012-08-08 11:13:02 UTC
You can use CSS to hide the link.
Comment 3 p858snake 2012-08-08 11:15:18 UTC
Is there even a large enough use case for such a config option to be added? I can't imagine many communities that would want to hide that, For the few that can, Site/User JS/CSS would probably be enough.

Suggesting WontFix...
Comment 4 Steve 2012-08-08 12:31:41 UTC
Thanks for the CSS idea. Can someone provide the CSS for this? I would have used the "li" id, but the printable version link doesn't have one.
Comment 5 Daniel Friesen 2012-08-08 12:38:55 UTC
Rather than CSS I'd use SkinTemplateOutputPageBeforeExec to erase print from the nav_urls.
Comment 6 db [inactive,noenotif] 2012-08-08 15:33:27 UTC
It is easy, only look for the id:

#t-print { display:none; }

If than an nav group is empty, you have to look for that id to hide that also.
Comment 7 Steve 2012-08-08 16:16:43 UTC
Unfortunately that doesn't work due to this bug:

https://bugzilla.wikimedia.org/show_bug.cgi?id=34264
Comment 8 p858snake 2013-03-13 11:36:55 UTC
WONTFIXing this, No one has really given a use case for this, and for the small miniority that would want this site css/js should be enough.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links