9 years ago
Topic

Hi,

I have a field (simple dropdown), with the url's of suppliers. But I would like to have them shown "clickable"on the frontend. I tried to store them in the options field as HTML, but that didn't work.

What is the best way to achieve this?

Regards,

Eric

Get a VIP membership
572 Posts
_jrmo
9 years ago
1
Level 1

Hi Eric,

You can just add some jQuery to your website's template to do this. There is an example at this link here:

http://stackoverflow.com/questions/5150363/onchange-open-url-via-select-jquery

This isn't achievable directly with just using SEBLOD. You'll need to add that code to your template.

9 years ago
0
Level 2

Hi Jrmo,

Thanks for your reply. It made me clear that I did not put the problem in the right words.I have on the backend this field, a simple dropdown, where the options are in plain text the urls of suppliers. 

Now I would like to show the chosen option as a clickable url on the frontend, not as plain text.

My wish is not to have to write the complete url in each article, therefor I chose this field.
Imho the script in the template is not the right solution for it wil generate a dropdownlist on the frontend.

Regards,

Eric

4229 Posts
Kadministrator
9 years ago
1
Level 1

Hi,

if you would like to have this clickable url in the content view you can use Html typography and put something like this into it

<a href="/*value*">*value*</a>
9 years ago
0
Level 2

Hi Klas,

Thank you, that was what I was looking for!

Regards,

Eric

Get a Book for SEBLOD