 |

dimeco
User
May 9, 2008, 1:25 PM
Post #1 of 3
(427 views)
Shortcut
|
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
|
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:
<!-- 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
|
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
|
|
|  |
|