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

Links custom field #3819

Open
stbnrivas opened this issue Apr 14, 2021 · 1 comment
Open

Links custom field #3819

stbnrivas opened this issue Apr 14, 2021 · 1 comment

Comments

@stbnrivas
Copy link
Contributor

I would like propose to talk about new type of custom_field for link

  1. a link should be two inputs
  • link display value
  • link url
  1. I am not sure if it useful localized the custom field:
  • localized_link_to
  • link_to
  1. stuff which involve
  • custom_field_type
  • custom_field_validation
@ferblape
Copy link
Member

Take care with the details (start the issue title in capital letters, be a bit more verbose) and ortography. This is what I'd had written in the issue:

Title: Links custom field

In order to support linked text in custom fields (i.e a field linking to the original source of a dataset as required in #3032) there are two options:

  1. implement a new type of custom field to support HTML links, composed by two attributes a text and a link (the href attribute of the link)
  2. use a String custom field and use HTML on its value:
    Screenshot from 2021-04-15 07-21-21

While this second option is a quick solution, it's not very elegant. If we foresee that a link custom field might be useful in the future I'd suggest to add it now and prevent any data migration in the future. Otherwise we might solve the current needs with a raw string custom field.

cc @furilo

@stbnrivas stbnrivas changed the title new custom field for links Links custom field Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants