I created a new link field, to display a drop-down list of currencies. The new field was created fine, but its not displaying in the suggest links template, for example....
When the field was created, I chose dropdown selector as the type, and entered the options, separated by commas. I also chose mysql field type as text.. (not sure what floating point and integer do)
So why isn't this displaying in the templates...? Even when I manually add in {LINKCURRENCY} it doesn't show anything....
If it was really writeable you must've removed the insert new fields here marker from the template. Anyhow you need to use html to create a dropdown list with the selector name being your field name.
I did not remove the insert new fields marker - its still there
anyway i deleted that field and added it again, and this time its appeared in the templates - however I see that the full HTML has been inserted in the template (all the <options></options> etc), whereas if I just do this:
<select name="currency">{LINKCURRENCY}</select>
which is what I thought was the way to do it, it doesn't display: you just get an empty SELECT dropdown
Also, how do you get the value selected from the dropdown to display in the webpage? Eg, lets say someone selects US$ when on the submitlink page, and you want that displayed on the output from displaylinks.tpl, how is that done?
Comments on new dropdown field not displaying
Forum Regular
Usergroup: Customer
Joined: Aug 05, 2005
Total Topics: 94
Total Comments: 272
I created a new link field, to display a drop-down list of currencies. The new field was created fine, but its not displaying in the suggest links template, for example....
When the field was created, I chose dropdown selector as the type, and entered the options, separated by commas. I also chose mysql field type as text.. (not sure what floating point and integer do)
So why isn't this displaying in the templates...? Even when I manually add in {LINKCURRENCY} it doesn't show anything....
and yes, my templates are writeable
??
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
If it was really writeable you must've removed the insert new fields here marker from the template. Anyhow you need to use html to create a dropdown list with the selector name being your field name.
Forum Regular
Usergroup: Customer
Joined: Aug 05, 2005
Total Topics: 94
Total Comments: 272
I did not remove the insert new fields marker - its still there
anyway i deleted that field and added it again, and this time its appeared in the templates - however I see that the full HTML has been inserted in the template (all the <options></options> etc), whereas if I just do this:
which is what I thought was the way to do it, it doesn't display: you just get an empty SELECT dropdown
Forum Regular
Usergroup: Customer
Joined: Aug 05, 2005
Total Topics: 94
Total Comments: 272
Also, how do you get the value selected from the dropdown to display in the webpage? Eg, lets say someone selects US$ when on the submitlink page, and you want that displayed on the output from displaylinks.tpl, how is that done?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
It's supposed to do it the way it does do it.
{LINKCURRENCY} is the display variable.