Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Article Manager 2:
Using a list

 

 


Toledoh
User

Dec 13, 2006, 1:01 PM

Post #1 of 5 (248 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!
Tim Forrest
Toledoh Enterprises


Toledoh
User

Dec 13, 2006, 4:07 PM

Post #2 of 5 (240 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
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 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.




Toledoh
User

Dec 14, 2006, 2:10 PM

Post #4 of 5 (230 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
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.

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4