Hi Keesjan..
Again Thanks allot..i did all as u said.,then rebuilds the application and clears the cache too.., but i wont get Any of the changes to hide those parts in left side column.. i wont did any changes in _ColumnsThree.cshtml too...
here is the code of index.cshtml in /themes/nopClassic/Views folder...
@{
Layout = "~/Views/Shared/_ColumnsThree.cshtml";
}
@Html.Action("WidgetsByZone", "Widget", new { widgetZone = "home_page_top" })
@Html.Action("TopicBlock", "Topic", new { systemName = "HomePageText" })
<div class="clear">
</div>
@Html.Action("HomepageCategories", "Catalog")
<div class="clear">
</div>
@Html.Action("HomepageProducts", "Catalog")
<div class="clear">
</div>
@Html.Action("HomepageBestSellers", "Catalog")
<div class="clear">
</div>
@Html.Action("HomePageNews", "News")
<div class="clear">
</div>
@Html.Action("HomePagePolls", "Poll")
@Html.Action("WidgetsByZone", "Widget", new { widgetZone = "home_page_bottom" })
@section left {
This is the left side...
}
then this is the code of ordinary index.cshtml file in /views/home folder...
@{
Layout = "~/Views/Shared/_ColumnsThree.cshtml";
}
@Html.Action("WidgetsByZone", "Widget", new { widgetZone = "home_page_top" })
@Html.Action("TopicBlock", "Topic", new { systemName = "HomePageText" })
<div class="clear">
</div>
@Html.Action("HomepageCategories", "Catalog")
<div class="clear">
</div>
@Html.Action("HomepageProducts", "Catalog")
<div class="clear">
</div>
@Html.Action("HomepageBestSellers", "Catalog")
<div class="clear">
</div>
@Html.Action("HomePageNews", "News")
<div class="clear">
</div>
@Html.Action("HomePagePolls", "Poll")
@Html.Action("WidgetsByZone", "Widget", new { widgetZone = "home_page_bottom" })
then this is the ccode in _ColumnsThree.cshtml :-
@{
Layout = "~/Views/Shared/_Root.cshtml";
}
@{
//current category ID
int currentCategoryId = 0;
if (Url.RequestContext.RouteData.Values["controller"].ToString().Equals("catalog", StringComparison.InvariantCultureIgnoreCase) &&
Url.RequestContext.RouteData.Values["action"].ToString().Equals("category", StringComparison.InvariantCultureIgnoreCase))
{
currentCategoryId = Convert.ToInt32(Url.RequestContext.RouteData.Values["categoryId"].ToString());
}
//current manufacturer ID
int currentManufacturerId = 0;
if (Url.RequestContext.RouteData.Values["controller"].ToString().Equals("catalog", StringComparison.InvariantCultureIgnoreCase) &&
Url.RequestContext.RouteData.Values["action"].ToString().Equals("manufacturer", StringComparison.InvariantCultureIgnoreCase))
{
currentManufacturerId = Convert.ToInt32(Url.RequestContext.RouteData.Values["manufacturerId"].ToString());
}
//current product ID
int currentProductId = 0;
if (Url.RequestContext.RouteData.Values["controller"].ToString().Equals("catalog", StringComparison.InvariantCultureIgnoreCase) &&
Url.RequestContext.RouteData.Values["action"].ToString().Equals("product", StringComparison.InvariantCultureIgnoreCase))
{
currentProductId = Convert.ToInt32(Url.RequestContext.RouteData.Values["productId"].ToString());
}
}
<div class="master-wrapper-leftside-3">
@if (IsSectionDefined("left"))
{
@RenderSection("left")
}
else
{
@Html.Action("WidgetsByZone", "Widget", new { widgetZone = "left_side_column_before" })
<div class="clear">
</div>
@Html.Action("CategoryNavigation", "Catalog", new { currentCategoryId = currentCategoryId, currentProductId = currentProductId })
<div class="clear">
</div>
@Html.Action("ManufacturerNavigation", "Catalog", new { currentManufacturerId = currentManufacturerId })
<div class="clear">
</div>
@Html.Action("PopularProductTags", "Catalog")
<div class="clear">
</div>
@Html.Action("InfoBlock", "Common")
<div class="clear">
</div>
@Html.Action("PollBlock", "Poll", new { systemKeyword = "LeftColumnPoll" })
<div class="clear">
</div>
@Html.Action("WidgetsByZone", "Widget", new { widgetZone = "left_side_column_after" })
}
</div>
<div class="master-wrapper-center-3">
<div class="master-wrapper-cph-3">
@Html.Action("WidgetsByZone", "Widget", new { widgetZone = "main_column_before" })
@RenderBody()
@Html.Action("WidgetsByZone", "Widget", new { widgetZone = "main_column_after" })
</div>
</div>
<div class="master-wrapper-rightside-3">
@if (IsSectionDefined("right"))
{
@RenderSection("right")
}
else
{
@Html.Action("WidgetsByZone", "Widget", new { widgetZone = "right_side_column_before" })
<div class="clear">
</div>
@Html.Action("NewsletterBox", "Newsletter")
<div class="clear">
</div>
@Html.Action("RecentlyViewedProductsBlock", "Catalog")
<div class="clear">
</div>
@Html.Action("PollBlock", "Poll", new { systemKeyword = "RightColumnPoll" })
<div class="clear">
</div>
@Html.Action("WidgetsByZone", "Widget", new { widgetZone = "right_side_column_after" })
}
</div>
pls guide me to resolve the issue...
Thanks in advance...