Under Community Review

Add Download attribute option to Insert Hyperlink

In the CME, when editing a rich text field, it would be useful to have a Download attribute, to convert any Hyperlink (inc Component links) to a Download.

https://www.w3schools.com/howto/howto_html_download_link.asp

If this field is used in the CME then DXA should also recognise the attribute

Parents
  • Hi Steve,

    Is it possible for you to share a use case customer is using for this?

    If attribute is available in RTF source and published to web app then it definitely will be correctly handled by browser

    Are you requesting a support to have a control to specify such attribute via CME UI and link attribute mainly will be used on web app side or customer is actively using download feature internally?

    If possible please share a use case

    Thank you

Comment
  • Hi Steve,

    Is it possible for you to share a use case customer is using for this?

    If attribute is available in RTF source and published to web app then it definitely will be correctly handled by browser

    Are you requesting a support to have a control to specify such attribute via CME UI and link attribute mainly will be used on web app side or customer is actively using download feature internally?

    If possible please share a use case

    Thank you

Children
  • Hello Andriy,

    A content editor wants to add a link to a PDF download (e.g. A Brochure which is a Component in the CMS). The content editor is not expected to know HTML is sometimes blocked from editing the Source of the RTF directly.

    When the Content Editor creates the Hyperlink (using the button in the Ribbon bar), they get the option to create different types of links (Component, http://, other etc), one of these Types could be "Download". DXA could then be extended to handle this.

    Alternatively, on the same Insert Hyperlink screen, having an additional drop-down (or even replacing the Target dropdown) for "Attribute", which lists "Target", "Class", "Style", "Download" etc (All W3C supported anchor attributes), with an adjacent input field for the value.

    If this isn't clear I am very happy to jump on a video call to show you my idea.

    Thank you,
    Steve

  • Hi Steve,

    Thank you for explanation. It is clear

    Let's collect some votes