Hey guys,
Starting work on a module/hack for displaying a banner at the top of my albums based on their title or ID number.
Looking for an api call to perform a basic if/else like:
If (pagetitle) = (flowers)
<show code>
Else
<no title>
End if
I can expand it from there with some conditional CASE statements, but the goal is to eventually integrate it into a banner handling module.
If one of you smart type folk can get a PHP hillbilly like me started, we'll be Best friends foreverz.
Posts: 32509
so we're talking about smarty code since you want to do stuff in templates.
you can use {$theme.item.title}. e.g.
{if $theme.item.title == 'flowers'}
show your banner
{/if}
please take a look at existing .tpl files to get a feeling for smarty code and how to use {if} and other control statements.
--------------
Enter the Gallery 2 Theme Contest today!