Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Url field formats need an alt template #3747

Closed
spalger opened this issue May 4, 2015 · 1 comment · Fixed by #3748
Closed

Url field formats need an alt template #3747

spalger opened this issue May 4, 2015 · 1 comment · Fixed by #3748

Comments

@spalger
Copy link
Contributor

spalger commented May 4, 2015

Currently, when a field is url formatted, the rendered text for that value is always the url that it points to but this regularly causes unwieldy values.

There should be a second template as a part of the url field format that allows you to specify what the text representation of that url should be as opposed to the href/src template (need to work on naming).

  • The url template
    • defaults to the field value itself
    • used as the href for <a> tags
    • used as the src for <img> tags
    • has value and rawValue variables available to it.
  • The label template
    • defaults to the url
    • used as the content of <a> tags
    • used as the alt for <img> tags
    • has value, rawValue, and url variables available to it.
@spalger spalger added the v4.1.0 label May 4, 2015
@spalger spalger self-assigned this May 4, 2015
This was referenced May 4, 2015
@spalger
Copy link
Contributor Author

spalger commented May 6, 2015

Closed by #3748

@spalger spalger closed this as completed May 6, 2015
@rashidkpc rashidkpc assigned BigFunger and unassigned spalger May 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants