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

Home: Products: Article Manager 2:
if statement?

 

 


dimeco
User

May 9, 2008, 1:25 PM

Post #1 of 3 (427 views)
Shortcut
if statement? Can't Post

would this be possible with an if statement?

"if" the article has a video, then the video appears. (I have that statement).

IF there's no video, replace that spot with an ad?

Is that possible? And if so, how would I call that?

Amber


Jake
Staff / Moderator


May 10, 2008, 3:23 PM

Post #2 of 3 (412 views)
Shortcut
Re: [dimeco] if statement? [In reply to] Can't Post

Hi Amber,

This is possible to do but you would need to have a specific field set up for your video code. Such a templateIf statement would look like this:


Code
<!-- templateIf: $article.video$ ne "" --> 
$article.video$
<!-- /templateIf -->

<!-- templateIf: $article.video$ eq "" -->
***Ad code here***
<!-- /templateIf -->


This example assumes that your video field is called "video". If you need to set up a new field for this, you can do that by going to Admin -> Database Editor and clicking "edit table & fields" for db_article. Here you'd want to create a text box field for your video code.

If you have your video function set up in a different way, let us know how you have this working and we might be able to figure out an alternate solution.

Let us know if you have any other questions about this!
-----------------------------------------------------------
Cheers,
Jake Swanson - 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.



dimeco
User

May 11, 2008, 12:56 PM

Post #3 of 3 (363 views)
Shortcut
Re: [Jake] if statement? [In reply to] Can't Post

Hi Jake - thanks :)

I do have the video added to the table (as per some other instructions in a different area LOL).

Here's the page:
http://www.thatsubject.com/topics/publish/internet-marketing/Internet_MarketingTest.shtml

I'll try the if statement you supplied.

Amber

 
 
 


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