Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
Using a list

 

 


Toledoh
Enthusiast

Dec 13, 2006, 1:01 PM

Post #1 of 5 (611 views)
Shortcut
Using a list Can't Post

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;

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!
Cheers,

Tim Forrest
Toledoh Enterprises
www.toledoh.com.au


Toledoh
Enthusiast

Dec 13, 2006, 4:07 PM

Post #2 of 5 (603 views)
Shortcut
Re: [TF Solutions] Using a list [In reply to] Can't Post

I've come across http://www.interactivetools.com/iforum/Products_C2/Article_Manager_2_F31/Article_Manager_v2.1_-_New_features_on_the_way..._P50819/#51705

So I guess I need to work around by having multiple check boxes rather than a list?

Is this a fix in 2.1? And is it anticipated soon?

Cheers
Cheers,

Tim Forrest
Toledoh Enterprises
www.toledoh.com.au


ross
Staff / Moderator


Dec 14, 2006, 1:50 PM

Post #3 of 5 (596 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 Smile.
-----------------------------------------------------------
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: http://www.interactivetools.com/consulting/



Toledoh
Enthusiast

Dec 14, 2006, 2:10 PM

Post #4 of 5 (593 views)
Shortcut
Re: [ross] Using a list [In reply to] Can't Post

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;

Code
<!-- 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
Cheers,

Tim Forrest
Toledoh Enterprises
www.toledoh.com.au


Donna
Staff / Moderator


Dec 15, 2006, 4:32 PM

Post #5 of 5 (582 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

--
support@interactivetools.com