This project is read-only.

how to call partial view in custom module?

Topics: Customizing Orchard
Aug 22, 2014 at 3:30 PM
Hey everyone,

I've created a partial view under /Views/Shared.

I'm calling it like this: @Html.Partial("_sortandpost.cshtml", Model)

But nothing happens, I have a routing.cs file, do I need to add anything there for rendering the partial view?

Aug 22, 2014 at 3:39 PM
Nevermind, had to call it like this: @Html.Partial("_sortandpost", Model)

So without the cshtml :)
Marked as answer by borrierulez on 8/22/2014 at 8:31 AM