- 4
I am having an issue with the anywhere sliders showing up on all the pages, I only want it on the homepage at the top just under the menu. Any help would be appreciated.
The 'Index.cshtml' page is calling the correct file.
Thank you.
Here is the code: I have the slider in its own div so it was show up across the whole page. I want the slider to render in the one column and I want the rest of the page to be two columns.
_ColumnsTwo.cshtml
<!--this is where the slider is located.-->
<div class="center-1">
@Html.Widget("home_page_top")
</div>
<!--end slider-->
<div class="center-2">
@RenderBody()
</div>
<div class="side-2">
@if (IsSectionDefined("left"))
{
@RenderSection("left")
}
else
{
@Html.Widget("left_side_column_before")
@Html.Action("CategoryNavigation", "Catalog", new { currentCategoryId = currentCategoryId, currentProductId = currentProductId })
@Html.Widget("left_side_column_after_category_navigation")
@Html.Action("ManufacturerNavigation", "Catalog", new { currentManufacturerId = currentManufacturerId })
@Html.Action("PopularProductTags", "Catalog")
@Html.Action("PollBlock", "Poll", new { systemKeyword = "LeftColumnPoll" })
@Html.Widget("left_side_column_after")
}
The 'Index.cshtml' page is calling the correct file.
Thank you.
Here is the code: I have the slider in its own div so it was show up across the whole page. I want the slider to render in the one column and I want the rest of the page to be two columns.
_ColumnsTwo.cshtml
<!--this is where the slider is located.-->
<div class="center-1">
@Html.Widget("home_page_top")
</div>
<!--end slider-->
<div class="center-2">
@RenderBody()
</div>
<div class="side-2">
@if (IsSectionDefined("left"))
{
@RenderSection("left")
}
else
{
@Html.Widget("left_side_column_before")
@Html.Action("CategoryNavigation", "Catalog", new { currentCategoryId = currentCategoryId, currentProductId = currentProductId })
@Html.Widget("left_side_column_after_category_navigation")
@Html.Action("ManufacturerNavigation", "Catalog", new { currentManufacturerId = currentManufacturerId })
@Html.Action("PopularProductTags", "Catalog")
@Html.Action("PollBlock", "Poll", new { systemKeyword = "LeftColumnPoll" })
@Html.Widget("left_side_column_after")
}