Make ISSUU smartlook ignore selected PDF files
If you're reading this post then you're probably already using the great free service provided by ISSUU called "smartlook" which enables people using your website to read your PDF's online like a book (have a look at this example from a Drupal website we built)....and if you're not a) how did you get here and b) you should be using it!
Smartlook is funny little tool which ISSUU themselves really don't seem to make much noise about and if you've had a look in forums will have discovered aren't super quick at responding to "issues" (excuse the pun) about either. So one wonders if one day it will cease to exist, but never the less right now its still here and is pretty good.
A problem I came up against was that I needed 2 links on my page. One for reading online with smartlook and one so that users download the pdf, and issue kept hi-jacking both links so even the download one opened in issuu. A bit of searching soon made me realise this was a common frustration.....
However as ever the internet was my saviour once again and I found a nice little work around.
Basically the way smartlook works is that it searches your HTML for links with a .pdf extension then modifies the link to go to the file on ISSUU servers. Once its done this it adds a css class called "issuu-link-hijacked" to stop it doing it again.
Its a bit of a hack but we can use this behaviour to stop smartlook hi-jacking a particular link, so the orginal link that was being hi-jacked e.g. something like:
<a href="myfile.pdf">Link text</a>
<a href="myfile.pdf" class="issuu-link-hijacked">Link text</a>
Lo and behold the issuu smartlook service will ignore this link and despite what the class says will NOT hi-jack your link
Thanks to Sean Corrales for his response on get satisfaction