tinyzenpage add custom link to PDF

fretzl Administrator, Developer
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 class-WEBdocs plugin.

When I select custom link (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 class-WEBdocs plugin is enabled.

Comments

  • acrylian Administrator, Developer
    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.
  • fretzl Administrator, Developer
    Sigh... I always find it difficult to explain myself properly.
    Sorry, again.

    The short version then:
    In tinyzenpage I want to insert a custom text linked to a PDF.
    The text is not displayed. Instead the PDF is.
  • acrylian Administrator, Developer
    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.
  • fretzl Administrator, Developer
    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 class-WEBdocs is enabled.
    With normal images everything works fine.
  • acrylian Administrator, Developer
    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.
    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.
  • acrylian Administrator, Developer
    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).
  • fretzl Administrator, Developer
    Thanks. I'll figure out another way to do this ;-)
  • acrylian Administrator, Developer
    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.
Sign In or Register to comment.