public ActionResult ActionName()
{
BaseModel model = ... (here I just got my homepage IPublishedContent) since the model didn't matter, just needed it for the base layout;
return View("~/path/to/view.cshtml", model);
}
To note, I did all this on a different .csproj aside the main project, as an extensible plugin.
Is it possible to load a View without setting the Template for the Document Type?
Hello,
Weird question!
Is it possible to load a view without setting the template on the document type?
If the template is not set, it always goes to 404 page and never enters the controller.
I'm doing this because I don't want that specific view on the backoffice.
Thanks!
Did you find a way yo do that? I'm facing the same problem
Hey, what I ended up doing was registering a controller at runtime, like this:
Then on the controller:
To note, I did all this on a different .csproj aside the main project, as an extensible plugin.
is working on a reply...