On a zenpage page I'm trying to insert a custom link to a PDF in an album.
When I click on the link I'd like the PDF to be displayed on image.php using the [i]class-WEBdocs[/i] plugin.
When I select [i]custom link[/i] (or any other setting for that matter) and then select the PDF in tinyzenpage no link is displayed.
Instead the PDF is inserted in the page.
The [i]class-WEBdocs[/i] plugin is enabled.
And that pdf is within an album? For a custom link directly linking to any file:
I have tried with an normal image only but actually it should treat all items that way.
Yes the PDF is in an album.
This is what I am trying to do:
I just noticed something:
The PDF is only recognized in tinyzenpage if the [i]class-WEBdocs[/i] is enabled.
With normal images everything works fine.
Sorry, I somehow confused "custom link" with "custom text". I tried above with an image page locally onthe trunk and it did work as expected.
Quote:The PDF is only recognized in tinyzenpage if the class-WEBdocs is enabled.
Of course as that plugin enables support for PDFs. TinyZenpage only supports gallery formats.
I haven't tried with that plugin yet but will do in a minute.
I can reproduce this. Have to look why that happens. Actually even if I choose image title it inserts the full thing (the preview image actually)
It seems it is always an iframe construct inserted. This must come from the plugin itself but I am not familiar with it.
Update: Reason is that it is treated as a "textobject" because the webdocs class is an extension of that. So the body of the item is called directly (which is the iframe setup).