Loading...
 
Skip to main content

Themes


You are viewing a reply to Banners based on category?

Re: Banners based on category?

After manually tracing through php and tpl files (and lots of banging head on wall), I finally figured it out!

{* Start dynamic ad banner *}
{if !$catp}{banner zone='Default'}
{else}
{foreach name=u key=k item=i from=$catp}
{if $i eq 'MyZone'}
{banner zone='MyZone'}
{else}
{banner zone='Default'}
{/if}
{/foreach}
{/if}
{* End dynamic ad banner *}

Note: if a page has more than one 'category', this may stack banners on your page, however when I had more than one {banner} on a wiki page it only displayed the first instance of the {banner}.

Not bad for a guy that a week ago thought that a 'smarty' was a single colorful sugar-coated chocolate confectionery (Smarties). 😊

Aw c'mon, I thought is was funny...

Maybe someone could still help me with this one... Sort external RSS feed to display on Wiki?
http://tikiwiki.org/tiki-view_forum_thread.php?comments_parentId=35126&forumId=4Question