Hi,
I am trying to get a sidebar to appear based on one of the following conditions:
There are child pages (i.e., Menu2 items), or a photo or content entered into the CMS sidebar tab, which I've added to the Page.php file.
I can get <% if Menu(2) %> and <% if Photo || SidebarContent %> to work on their own. But I get a parsing error if I combine them.
This is the code in my page.ss template. Any ideas?
<% if Menu(2) || Photo || SidebarContent %>
<div id="ContentNarrow">
$Layout
</div>
<div id="SidebarR">
<% if Menu(2) %>
<% include Menu2 %>
<% end_if %>
<% if Photo || SidebarContent %>
<% include SidebarStuff %>
<% end_if %>
</div>
<% else %>
$Layout
<% end_if %>
Thanks,
Sam