custom_plugins

Discussion in 'TemplateCodes' started by magicosta, May 24, 2010.

  1. magicosta Customer

    Hi,

    I would like to display a publicity ban above each of my listings (new, featured and popular). So, I added a code on top of showlisting.tpl code page and it works fine, the only problem is the ban is showing up as well when I use popular categories where I have already $promo which displays another pub.

    The question is how to display the ban in every listing but not in popular categories listings?

    Any help welcome. Thank you in advance
  2. seymourjames All Hands On Deck

    I am a bit lost on this one. Not sure how this is a templatecodes issue or one which is to do with custom plugins?

    I am afraid you will need to elaborate with screenshots and further explanation.
  3. TemplateCodes-Mike TemplateCodes

    David is right in the fact that this has nothing to do with TemplateCodes products.

    My suggestion to your question however, is to put a smarty if statement in to check if there is anything in the $promo variable. Something like:
    PHP:
    {if $promo ne ''}
         
    your code here
    {else}
         {
    $promo}
    {/if}

Share This Page