although i am a fan of print stylesheets, i like the added functionality of this module such as the list of links at the bottom of the page. however, i don't like having the print link at the bottom of my custom 403 and 404 page. could the module either ignore pages where the http status is not 200, or could it have a feature like on the block config pages where you can choose to enable/disable only on specific pages?

thanks, jonathan

Comments

sun’s picture

Title: print link on error pages » Disable print link on certain pages
Version: 5.x-3.5 » 5.x-3.x-dev

Better title.

sun’s picture

Title: Disable print link on certain pages » Document Visibility API module integration
Component: Code » Documentation
Category: feature » task

Just looked through the code.
Support for disabling Print on certain pages has already been added via Visibility API module.

However, it seems this is not documented anywhere.

Jonaboff’s picture

I'm intermediate at PHP, but don't understand how Drupal modules work. How would I go about hiding the link for node/1 and node/2?

Or should I just wait for this to be added to the admin UI? It's not vitally important to me, just a small annoyance :P

Jonathan

jcnventura’s picture

Status: Active » Fixed

I had forgotten about the visibility API also...

Basically you have to install the visibility API module and it will add in this module's settings page a text area where you can specify the paths in which you don't want to show the link.

This was actually not working up to now, but I have fixed it in the latest dev, and added some text in the README.txt to indicate that this function exists..

And just to let you guys know, I added this at the request of a user (who apparently never tested it..), but I really plan to create a solution that doesn't require the extra module.. In the D6 version there is already something like this for the non-content link, and I am planning to extend it for now to the content links also. So use it for now, but be warned that a future version will not support it anymore.

João

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.