Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Martin Griffiths 826 posts 1269 karma points c-trib
    Nov 18, 2014 @ 16:06
    Martin Griffiths
    0

    Link to file in RTE in Umbraco 7

    It would appear that "link to file" in the RTE doesnt get added (PDFs at least).

    Am I missing anything or is this not supported?

    Martin

  • Rolf Johansson 53 posts 315 karma points
    Nov 27, 2014 @ 23:40
    Rolf Johansson
    0

    Hi Martin,

    This is not supported. The RTE only writes the "rel" attribute in the IMG elements. There is no markup telling what (real) Media node id is referenced in RTE link to file.

    Example img:
    <img src="/media/1050/forest-05.jpg?width=500&amp;height=375" alt="forest-05.jpg" rel="2150" />

    Example link to file:
    <a href="/media/1047/2805-1103.pdf" title="2805-1103.pdf">LINK_TO_FILE</a>

    I guess one could try and look for href="/media/..." and then do a GetMediaByPath() to find out the real Media node id. 

    Please consider writing an enhancement issue at https://github.com/rolfis/MediaContentUsage/issues if you find this important.

    Rolf

Please Sign in or register to post replies

Write your reply to:

Draft