Custom output for EPiServer pages, pt 3

Using the Output channels within MVC requires a slightly different approach than with WebForms. So, I created a few Controllers A JsonController that handles the output for JSON. A XmlController that handles the output for XML. A TxtController that handles the output for TXT. A PdfController that handles the output for PDF. The Channels get … Continue reading Custom output for EPiServer pages, pt 3

Advertisements

Custom output for EPiServer pages, pt 2

A comment on my last post, "Custom output for EPiServer pages", said that it would me more clean to have content rendered based on content negotiation, rather than on a querystring parameter. I don't look on an url segment as a querystring, and you cannot always force the Content-Type or Accept header for the one … Continue reading Custom output for EPiServer pages, pt 2

Custom output for EPiServer pages

What I needed I wanted to be able to render different output formats for a page created in EPiServer. My requirements were: Render the different output through a segment in the url, not through the querystring. Control over what gets rendered in the output. The solution I started with creating the output formats I wanted. … Continue reading Custom output for EPiServer pages