Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: Tobias Maier commentedComment #3
moshe weitzman CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: Tobias Maier commentedComment #7
Dries CreditAttribution: Dries commentedSuperseded by issue #27999.
Comment #8
Dries CreditAttribution: Dries commentedCommitted to HEAD.
Comment #9
(not verified) CreditAttribution: commented