timlovrecic / Webform-Protected-Downloads

Recreation of Webform Protected Downloads for Drupal 8
5 stars 8 forks source link

Provide a template and admin text field for rendered token output #3

Open dixhuit opened 6 years ago

dixhuit commented 6 years ago

The addition of the token is really useful but it would be great if we could override the text and markup.

I'd suggest an additional settings field to store text content on a per webform basis as well as a template that developers can override to gain control of the markup.

anotherjames commented 8 months ago

7 included a fix for this in this repo, however this then breaks links in emails, which should not necessarily use markup. The new version of this back on https://www.drupal.org/project/webform_protected_downloads resolves this by only returning the URL for the token, which can be placed in whatever HTML you like for HTML contexts. So that usually means putting it into the href attribute of a link, where you can customise the text.