Very simple Show sidebar content. Or not.
Posted: Thu Aug 18, 2011 1:53 pm
Here is a very simple code that checks if your sidebar field has any content and if it does, it's displayed, if not, then other modules are displayed.
This code goes into the template, where the sidebar content is:
Does not get much simpler than this.
Here is a much more advanced method of controlling modules per page, from i-do-this.com:
http://www.i-do-this.com/blog/42/Give-Y ... ir-Sidebar
This code goes into the template, where the sidebar content is:
Code: Select all
{content block="Sidebar" assign="sideb"}
{if $sideb <>"" }
{$sideb}
{else}
{* show other module content*}
{/if}
Here is a much more advanced method of controlling modules per page, from i-do-this.com:
http://www.i-do-this.com/blog/42/Give-Y ... ir-Sidebar