homepage only

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 anni tempo fa
Hi Guys
I have features on homepage using whats provided. Below is simple code that I have copied and put into _columnstwo.cshtml.

@Html.Action("NewsletterBox", "Newsletter")
        <div class="clear">
        </div>

@Html.Action("HomePageNews", "News")
        <div class="clear">
        </div>

So here i have ""2 features" on my left column. 1. the newsletter subscription, and also 2. news on my left column.
Now the issue is this appears on every page on the left column and is making this left column really long. Imagine on product page, which takes up little space the left side is extending really long all the way down.  

I would like to have this appear only on the home page. Is it possible to add some if statement to achieve this?

Cheers
Jus
11 anni tempo fa
anyone?
11 anni tempo fa
The _columnstwo.cshtml. is a generic template any thing you put in there will be shown on all pages that use that as it base template.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.