Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
book.module
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
1 Aug 2005 at 23:32 UTC
Updated:
22 Oct 2005 at 15:00 UTC
Jump to comment: Most recent file
Hello,
it would be good to be able to deactivate
* printer-friendly version
* export DocBook XML
and export OPML
I dont want that people are able to export my content, they should just be able to see it and to print it with my special print css-style-sheed (and just the specific page)
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | book.module_10.patch | 6.36 KB | Tobias Maier |
| #1 | book.module_5.patch | 1.85 KB | Tobias Maier |
Comments
Comment #1
Tobias Maier commentedhere comes my patch of this.
it introduces two more permissions:
'export books' and 'see printer-friendly version'
why so I want to hide the printer-friendly version?
The User should see my logo on every page - this is not possible with "printer-friendly version"
read http://support.bryght.com/adminguide/site-types/corporate
Comment #2
Tobias Maier commentedComment #3
moshe weitzman commentedin addiiton to removing links, you have to block access tp these features. this is done with the 'access' element of the relevant items in book_menu()
Comment #4
kbahey commentedI have done this in the past, as you can see in this issue, but it got shot down as "too many options! this is a bad thing!"
I hope your more generic approach is met with a more favorable response.
We should never force links on a site.
Comment #5
Tobias Maier commentedI had a little bit time and worked on a new version of this patch and here it comes.
changes:
- blocked access in book_menu()
- because of the two rules 'export books' and 'see printer-friendly version' I had to check the access rights in book_export() again
- fixed typo (there was in one line $ompl not $opml)
I hope you like it and include it in 4.7.
Because which brochure site needs this function?
beside this I saw that the "printer friendly output" is hard coded into the module.
We all tell everyone should never hard code tags and then this...
Comment #6
Tobias Maier commentedComment #7
dries commentedSuperseded by issue #27999.
Comment #8
dries commentedCommitted to HEAD.
Comment #9
(not verified) commented