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)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Tobias Maier’s picture

FileSize
1.85 KB

here 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?

  • Not every User wants to print the Subpages
  • I want to provide a special print style sheed (@media print or how it was called in css) so I dont need a completely new site, which will be generated by drupal
    The User should see my logo on every page - this is not possible with "printer-friendly version"
  • It does not fit for a corporate site (my opinion) which I want to make with drupal
    read http://support.bryght.com/adminguide/site-types/corporate
Tobias Maier’s picture

Status: Active » Needs review
moshe weitzman’s picture

Status: Needs review » Needs work

in 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()

kbahey’s picture

I 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.

Tobias Maier’s picture

FileSize
6.36 KB

I 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...

Tobias Maier’s picture

Assigned: Unassigned » Tobias Maier
Status: Needs work » Needs review
Dries’s picture

Status: Needs review » Closed (fixed)

Superseded by issue #27999.

Dries’s picture

Status: Closed (fixed) » Fixed

Committed to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)