Hi,
I would like to have 2 sidebars on my home page and only the left sidebar on the remaining pages.
As far as I can see there are 2 areas of code that need changing in the outer layout
Firstly the code that controls the width of the content area:
The second is populating the sidebar:
There is a variable: "IsBrochureHomePage" to indicate whether you have the right page to display the 2 sidebars.
Adding the sidebar to the home page seems straightforward:
However I am struggling to get the page widths correct.
duplicating the content area code, swapping the minus one and minus two and using 2 block-if (IsBrochureHomePage and IsBrochureHomePage != "TRUE") doesn't work:
I was hoping someone could suggest an alternative or if I am missing a change in another part of the code?
Many thanks
I would like to have 2 sidebars on my home page and only the left sidebar on the remaining pages.
As far as I can see there are 2 areas of code that need changing in the outer layout
Firstly the code that controls the width of the content area:
HTML Code:
<div class="content-area<actinic:block if="%3cactinic%3avariable%20name%3d%22Wiz3%5fSidebars%22%20%2f%3e%20%3d%3d%20%27Two%20Sidebars%27" > content-minus-two</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22Wiz3%5fSidebars%22%20%2f%3e%20%3d%3d%20%27One%20Sidebar%27" > content-minus-one</actinic:block>">
HTML Code:
<actinic:block if="%3cactinic%3avariable%20name%3d%22Wiz3%5fSidebars%22%20%2f%3e%20%21%3d%20%22One%20Sidebar%22" > <div id="right-sidebar"> <actinic:variable value="Regular Right Sidebar" name="SideBar" /> </div> </actinic:block>
Adding the sidebar to the home page seems straightforward:
HTML Code:
<actinic:block if="%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e" > <div id="right-sidebar"> <actinic:variable value="Regular Right Sidebar" name="SideBar" /> </div> </actinic:block>
duplicating the content area code, swapping the minus one and minus two and using 2 block-if (IsBrochureHomePage and IsBrochureHomePage != "TRUE") doesn't work:
HTML Code:
<actinic:block if="%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e" > <div class="content-area<actinic:block if="%3cactinic%3avariable%20name%3d%22Wiz3%5fSidebars%22%20%2f%3e%20%3d%3d%20%27Two%20Sidebars%27" > content-minus-one</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22Wiz3%5fSidebars%22%20%2f%3e%20%3d%3d%20%27One%20Sidebar%27" > content-minus-two</actinic:block>"> </actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22IsBrochureHomePage%22%20%2f%3e%20%21%3d%20%22TRUE%22" > <div class="content-area<actinic:block if="%3cactinic%3avariable%20name%3d%22Wiz3%5fSidebars%22%20%2f%3e%20%3d%3d%20%27Two%20Sidebars%27" > content-minus-two</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22Wiz3%5fSidebars%22%20%2f%3e%20%3d%3d%20%27One%20Sidebar%27" > content-minus-one</actinic:block>"> </actinic:block>
Many thanks