 |

Toledoh
User
Dec 13, 2006, 1:01 PM
Post #1 of 5
(248 views)
Shortcut
|
Hi Guys, I have a field "Available", that has the options as a multiple selections... "coming soon" "online" etc.. I'm using the following code;
<!-- templateIf : $article.available$ eq "Online" --><td>On Line</td><!-- /templateIf --> but I guess I really need to say something like if "Online" eq "yes"... but how do I do that? Cheers! Tim Forrest Toledoh Enterprises
|
|
|  |
 | |  |
 |

ross
Staff
/ Moderator

Dec 14, 2006, 1:50 PM
Post #3 of 5
(233 views)
Shortcut
|
|
Re: [TF Solutions] Using a list
[In reply to]
|
Can't Post
|
|
Hi there. Thanks for posting! I must admit though, I am not exactly sure what you are trying to do there. From the looks of it, you want to have some different output based on the value of one of your article fields. The thing there is that your templateIf looks good to me. Perhaps you could give me some more detail about what you were aiming for here. That way, I can see what options you have. How does that sound? I look forward to hearing from you . ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

Toledoh
User
Dec 14, 2006, 2:10 PM
Post #4 of 5
(230 views)
Shortcut
|
Hi Ross - thanks for the reply. The specific output page is http://www.murraysbrewingco.com.au/artman2/publish/our_beers/ I have a field that is a list, with mutli-select check boxes called "online, in bottles, on tap, coming soon". For each beer, I would like to display where they are available by selecting the appropiate check boxes - and thus displaying the icon... an abbreviated sample of code is now reading;
<!-- templateIf : $article.available$ eq "Online" --><td>on line</td><!-- /templateIf --> <!-- templateIf : $article.available$ eq "Ontap" --><td>on tap image</td><!-- /templateIf --> <!-- templateIf : $article.available$ eq "Inbottles" --><td>in bottles image</td><!-- /templateIf --> <!-- templateIf : $article.available$ eq "ComingSoon" --><td>Coming Soon</td><!-- /templateIf --> However, the $article.available$ doesn't equal "online" if more than just "online" is selected... it will equal "online,ontap" or similar... I guess what I need is $article.available$ contains "online" rather than equals... Does that make more sense? Cheers, Tim Tim Forrest Toledoh Enterprises
|
|
|  |
 |

Donna
Staff
/ Moderator

Dec 15, 2006, 4:32 PM
Post #5 of 5
(219 views)
Shortcut
|
|
Re: [TF Solutions] Using a list
[In reply to]
|
Can't Post
|
|
Hi Tim, Thanks for your email. :) I think the best way to do this would be with multiple fields. So, instead of article.available, you'd have article.online, article.ontap, article.inbottles, etc... and then you could list a match for each one independently. Would that work for you? Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
|