Themes: Applicable to all themes
Posted by: Will_HOn 2007/10/23 8:59:36 5438 readsRecently in This post, we discovered a technique that will be beneficial to all themes.
The gist of it is that, until now, themes have displayed the <{$xoops_contents}> regardless of whether or not there was content to be displayed.
The standard default theme, and every theme since has looked like this.
<div id="content">
<{$xoops_contents}>
div>
Which left a rather sizable gap on your index if you did not have a module set as your start page.
if you replace that code with the following, <{$xoops_contents}> will only be displayed if and only if there is content to be displayed.
<{if $xoops_contents}>
<div id="content">
<{$xoops_contents}>
div>
<{/if}>
Thanks to JAVesey for initiating this find.