Hi all,
i have categories and sub categories.i need to enable first category is expanded by default.or are there any setting to make all make expanded ?
Thanks
Nish
http://www.nishshanka.net Geek inside
System.Configuration.ConfigurationErrorsException was unhandled by user code
Message="Method 'GetAllCategories' in type 'NopSolutions.NopCommerce.DataAccess.Categories.SQLCategoryProvider' from assembly 'Nop.DataAccess.SqlServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
Source="System.Web"
BareMessage="Method 'GetAllCategories' in type 'NopSolutions.NopCommerce.DataAccess.Categories.SQLCategoryProvider' from assembly 'Nop.DataAccess.SqlServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation."
if (category.Id == Model.CurrentCategoryId ||
category.SubCategories.Count(BreadCrumbContainsCurrentCategoryId) > 0)
{
if (category.SubCategories.Count > 0)
{
<ul class="sublist">
@foreach (var subCategory in category.SubCategories)
{
@RenderCategoryLine(subCategory)
}
</ul>
}
}
<!-- Always expand all categories -->
if (true)
{
if (category.SubCategories.Count > 0)
{
<ul class="sublist">
@foreach (var subCategory in category.SubCategories)
{
@RenderCategoryLine(subCategory)
}
</ul>
}
}
<!-- Always expand the "Products" category and the current category -->
if (category.Id == Model.CurrentCategoryId || category.Name == "Products" ||
category.SubCategories.Count(BreadCrumbContainsCurrentCategoryId) > 0)