I'm attempting to use "or" within a smarty tag but can't seem to make it work. Each time I use the code in bold font, "foo" shows on everypage. Now, if I omit ["this-page" or "that-page"] then "foo" shows on the about page and "foobar" shows on the dealers page. My code is as follows: {if $page eq "about-us" or "this-page" or "that-page"} <p>foo</p> {elseif $page eq "dealers"} <p>foobar</p> {else} <p>Catch all content</p> {/if} How do I "group" pages together using the "or" operator...or any other method for that matter? I'm simply trying to make it possible to show different content in the sidebar for different pages. For the most part all is working, but when I try to show the same content on more than one page I run into issues. Thanks in advance for the help! Tim
{if $page eq "about-us" or $page eq "this-page" or $page eq "that-page"} I've never used Smarty but that would sense from a programmer's point of view.