Developer Guide

Template Cutin Guide

Overview Uploading a Template layouts sub-page template <$headerplugins> $logo1 <$menu> <$pagetitle> <$body> <$section> <$blog> <$sidebarcontrol> <$sidebarmenu> $single <$snippet> <$include> edittext label $viewlink <$cartitems> <$carttotal> <$domain> <$userfullname> <$userid> <isHomePage> <IsNotHomePage> <else> logic options <$copyright> <$trademark> <$date> <$year> File Versioning Social Media Links

<$sidebarcontrol>

Macro<$sidebarcontrol>
Purpose This macro is used to dynamically set the width of the page body container to a specified width when you need a page that spans the full width of the website, and it hides the sidebar.
Special NotesThis tag is normally used in a sub-page template that has a sidebar. Using the Basic tab on the page editor, you can specify that a specific page should not use the sidebar.

NOTE: Using this tag with no parameters will hide the container it is applied to.
Example UsageEXAMPLE SUBPAGE BEFORE

Header...

<div class="leftcolumn"> (800px wide)
    <$body>
</div>
<div class="rightcolumn"> (100px wide)
    content...
</div>

Footer...

EXAMPLE SUBPAGE AFTER

Header...

<div class="leftcolumn" <$sidebarcontrol pagewidth="900"> >  (Sets the width of this DIV to 900px if the sidebar is not being used)
    <$body>
</div>
<div class="rightcolumn" <$sidebarcontrol>> (Hides this DIV if the sidebar is not being used)
    content...
</div>

Footer...