Webmastersite.net
Register Log In

Color code custom link field values
Different colors for different values

Comments on Color code custom link field values

xtree


Usergroup: Customer
Joined: Aug 02, 2005
Location: Romania

Total Topics: 19
Total Comments: 50
xtree
Posted Oct 24, 2005 - 7:26 AM:

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?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 25, 2005 - 3:33 PM:

I'd guess you're looking for conditionals, but it's hard to see what you mean.
xtree


Usergroup: Customer
Joined: Aug 02, 2005
Location: Romania

Total Topics: 19
Total Comments: 50
xtree
Posted Oct 26, 2005 - 4:06 AM:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 28, 2005 - 2:55 AM:

Read scripts.webmastersite.net/w...inks/wsnmanual/articles/69

<IF {LINKCOST} is Free>green stuff</IF>
<IF {LINKCOST} is Trial>blue stuff</IF>

etc.
xtree


Usergroup: Customer
Joined: Aug 02, 2005
Location: Romania

Total Topics: 19
Total Comments: 50
xtree
Posted Oct 28, 2005 - 3:41 AM:

Thanks for pointing that out. Nice to see things that you thought would be cool already implemented.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.