tethysplatform / tethys

The Tethys Platform main Django website project repository.
http://tethysplatform.org/
BSD 2-Clause "Simplified" License
92 stars 49 forks source link

Ability to have Hyperlinks in the TextBox fields in the home page #950

Open romer8 opened 1 year ago

romer8 commented 1 year ago

When adding text for the different TextFields in the home page, there is no option to add hyperlinks. Addition of an tag also does not seems to be translated right when the home page is compiled.

Proposed.

It seems that the only solution, so far is to create a custom template for it. Also some solutions found are:

  1. use the safe tag (it might have security considerations) {{ text.value|safe }}
  2. Extending the urlize tag like this {% text | urlize | change_a_text_filter:{{ dome_new_a_text }} %}

A good reference is this stackoverflow issue