How to put some content in footer view file but only for home page - inside condition

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Hi,

I want to put one topic on home page in the footer section. I have put it inside footer view file. Problem, if I put it in footer, it is displayed on all pages of the site. But the condition, that this topic should only come on home page and not all page.

How can i put this topic inside condition to do something like this?

if homepage
// do something

end if

I want to put it in footer as per the design.
12 years ago
anyone, any idea?
12 years ago
HI
You can create new page sample.cshtml
u can create file in view-->catalog folder
u can add that file in index.cshtml as fallows
@Html.Action("Sample", "Catalog")
<div class="clear">
</div>
then i will come in home page only
web-->views-->Home-->index.cshtml



Thanks & Regards
Kumar
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.