tenants
Well-known member
Is there a way to hide, on the directory home page only, the left sidebar listing the categories? I have all of my categories in the main section in a much more presentable manner so I don't need that sidebar there and would like to have that main section extended all the way to the left margin of the page if possible.
You could do this with a template edit... you would also need to do it to the sub forums too
find the templates:
sfdirectory_index (the main directory page)
sfdirectory_sub_index (the sub directory pages)
then remove this section:
Code:
<div class="accountSideBar">
<ul>
<xen:hook name="dir_wrapper_sidebar">
<li class="section"><h4 class="heading">CATEGORIES</h4>
<!--<h4 class="subHeading">{xen:phrase alerts}</h4>-->
<ul>
<xen:hook name="dir_wrapper_sidebar_your_account">
<xen:foreach loop="$category_list" value="$category">
<li>
<a class="{xen:if "{$selectedKey} == 'alerts/latest'", 'secondaryContent', 'primaryContent'}"
href="{xen:link directory}{$category.url}">{$category.title} </a>
</li>
</xen:foreach>
</xen:hook>
</ul>
</li>
</xen:hook>
</ul>
</div>
I haven't tested doing this, so I'm not certain it will look cosmetically correct.. .but give it a go and let me know how you get on
It looks cosmetically correct when testing with firebug.. so it should work