I have installed Postal MVC to my current Umbraco project. Postal automatically creates a folder in your "Views" folder called "Emails" . In this new folder there are email templates that you can use.
Now I want, just like the "Partials" folder, that you can edit them in your Umbraco Backoffice, is there a simple way to add a new folder to this menu (see my Paint example below)? Or maybe even to the "Content" page?
One way of soving this would be to move the "Email Views" folder from /Views/Email to /Views/Partials/Email. Then whey will automaticly appear in backoffice. And the just adjust your ActionResult so it returns the corrent view with a path:
using Postal;
public class EmailController : Controller
{
public ActionResult Index()
{
dynamic email = new Email("Example");
email.To = "[email protected]";
email.FunnyLink = DB.GetRandomLolcatLink();
email.Send();
return View("/Views/Partials/Email/Index.cshtml");
}
}
Note that i have´nt tried Postal MVC but if it follow standard MVC routing there should´nt be a problem. At least its worth a try. :)
Edit custom View folder in Umbraco Backoffice
I have installed Postal MVC to my current Umbraco project. Postal automatically creates a folder in your "Views" folder called "Emails" . In this new folder there are email templates that you can use.
Now I want, just like the "Partials" folder, that you can edit them in your Umbraco Backoffice, is there a simple way to add a new folder to this menu (see my Paint example below)? Or maybe even to the "Content" page?
Hi Yanick.
One way of soving this would be to move the "Email Views" folder from /Views/Email to /Views/Partials/Email. Then whey will automaticly appear in backoffice. And the just adjust your ActionResult so it returns the corrent view with a path:
Note that i have´nt tried Postal MVC but if it follow standard MVC routing there should´nt be a problem. At least its worth a try. :)
Best of luck!
is working on a reply...