Quote:
Originally Posted by askmediy
Humm, could you elaborate a little more on that for me please. Thank you
|
This is something you will want to become familiar with:
http://wiki.vivvo.net/devdoc
Use the vte if statement(s) for evaluating the article object. You can evaluate the article to test for specific article ID's by checking the ID parameter of the Articles Object as below..
This example would check to see if the article being envoked is ID # 12345. If it is, it will execute the code within the if statement.. if not, it won't. Simple as that. You can place as many of these as you want to and they will only display for the article ID you want..
Code:
<vte:if test="{article.id} = '12345' ">
<vte:include file="{VIVVO_TEMPLATE_DIR}box/plugin_trivia.tpl" search_tid="3" />
</vte:if>
This would be an example for displaying different trivia on different articles.
Code:
<vte:if test="{article.id} = '12345' ">
<vte:include file="{VIVVO_TEMPLATE_DIR}box/plugin_trivia.tpl" search_tid="1" />
</vte:if>
<vte:if test="{article.id} = '13348' ">
<vte:include file="{VIVVO_TEMPLATE_DIR}box/plugin_trivia.tpl" search_tid="5" />
</vte:if>
<vte:if test="{article.id} = '1242' ">
<vte:include file="{VIVVO_TEMPLATE_DIR}box/plugin_trivia.tpl" search_tid="6" />
</vte:if>
<vte:if test="{article.id} = '775' ">
<vte:include file="{VIVVO_TEMPLATE_DIR}box/plugin_trivia.tpl" search_tid="11" />
</vte:if>