I have the Drupal 'print' module (http://drupal.org/project/print) installed as well as ShareThis. When users click on the link to get a print friendly version of the page, I'd like to not show the ShareThis link.

Example:
I have a story which is node #43. It's located at http://example.com/content/foobar and I see the ShareThis link on this story. When I click the 'print friendly' link, I go to http://example.com/print/43 and the ShareThis link is still present. I'd like the link to be disabled (not shown) on this page.

I'm not sure about technical details, but I'd think something like FCKeditor's visibility settings would be what I'd want (shown below).

Mockup of settings page after change:

--- > ShareThis API Code (STAPI) -----------------------------------------------------
--- > Node Types & Positioning -------------------------------------------------------
--- v Visibility settings -------------------------------------------------------------------
|
| Use inclusion or exclusion mode:
| [ drop menu: exclude | include ]
| Choose the way of disabling/enabling ShareThis on selected paths. Use exclude to disable ShareThis on selected paths.
| Use include if you want to load ShareThis only on selected paths.
|
| Paths to exclude/include:
| [Textarea]
| Enter drupal paths here, depending on the chosen option for the inclusion/exclusion mode.
| Paths may be used the same way as in the drupal blocks configuration.
| You may separate the different entries by commas, spaces or newlines.
| You may also use * as a wildcard character (for example comment/*).
|
-----------------------------------------------------------------------------------------------

Comments

shark’s picture

FYI, for others. The main reason for submitting this issue was to get rid of the ShareThis link on print friendly pages. That is a separate issue now, with a working patch.

jcnventura’s picture