ZenphotoCMS Forum
tinyzenpage add custom link to PDF - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: tinyzenpage add custom link to PDF (/thread-9778.html)



tinyzenpage add custom link to PDF - fretzl - 2012-03-15

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.




tinyzenpage add custom link to PDF - acrylian - 2012-03-15

Image title / link to image actually links to the normal image.php page. Or don't I understand the problem? TinyZenpage has no specific support for webdocs objects and treats them as images.




tinyzenpage add custom link to PDF - fretzl - 2012-03-15

Sigh... I always find it difficult to explain myself properly.
Sorry, again.

The short version then:
In tinyzenpage I want to insert a [i]custom text[/i] linked to a PDF.
The text is not displayed. Instead the PDF is.




tinyzenpage add custom link to PDF - acrylian - 2012-03-15

And that pdf is within an album? For a custom link directly linking to any file:

  • What to include: "image title"
  • Link type: "Custom link" with the FULL url to the file or "link to full image"

I have tried with an normal image only but actually it should treat all items that way.




tinyzenpage add custom link to PDF - fretzl - 2012-03-15

Yes the PDF is in an album.

This is what I am trying to do:

  • What to include: "custom text"
  • Link type: "link to image"

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.




tinyzenpage add custom link to PDF - acrylian - 2012-03-15

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.




tinyzenpage add custom link to PDF - acrylian - 2012-03-15

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




tinyzenpage add custom link to PDF - fretzl - 2012-03-15

Thanks. I'll figure out another way to do this ;-)




tinyzenpage add custom link to PDF - acrylian - 2012-03-15

I rarely used textobjects and almost never this webdocs. We could of course change the behaviour in tinyZenpage as well. That the full thing is embeded if actually a link is wanted is actually a little strange. Best you open a ticket so we don't forget.