I have a custom link field with several text values. I want to be able to display it as a template variable with different colors. Is there any way to color code the link field values differently so that they show in different colors in the template?
For example if I have a cost field (custom link field) with three values: Free,Trial,Pay in the link display template (and where I add {LINKCOST}) I would like to display the text text "Free" with green, "Trial" text in blue and "Pay" with red so it is more obvious which site offer free stuff and which sites you have to pay for without reading the text for each one.
Comments on Color code custom link field values
Usergroup: Customer
Joined: Aug 02, 2005
Location: Romania
Total Topics: 19
Total Comments: 50
I have a custom link field with several text values. I want to be able to display it as a template variable with different colors. Is there any way to color code the link field values differently so that they show in different colors in the template?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I'd guess you're looking for conditionals, but it's hard to see what you mean.
Usergroup: Customer
Joined: Aug 02, 2005
Location: Romania
Total Topics: 19
Total Comments: 50
Something like that I think.
For example if I have a cost field (custom link field) with three values: Free,Trial,Pay in the link display template (and where I add {LINKCOST}) I would like to display the text text "Free" with green, "Trial" text in blue and "Pay" with red so it is more obvious which site offer free stuff and which sites you have to pay for without reading the text for each one.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Read scripts.webmastersite.net/w...inks/wsnmanual/articles/69
<IF {LINKCOST} is Free>green stuff</IF>
<IF {LINKCOST} is Trial>blue stuff</IF>
etc.
Usergroup: Customer
Joined: Aug 02, 2005
Location: Romania
Total Topics: 19
Total Comments: 50
Thanks for pointing that out. Nice to see things that you thought would be cool already implemented.