Display a content item only

Topics: Customizing Orchard
May 13, 2014 at 3:11 PM
I want to be able to display a content item of a certain type and only that content item i.e. no shapes that are not part of said item.

I have tried creating a controller method with a {Themed(false)] attribute, or returning a partial view. Both of these do almost exactly what I want, except that these don't include any scripts or styles associated with the View I'm trying to display.

So, I would like to display an Html page with the display shape of an item, including the scripts and styles, but no headers, footers, navigation etc.

How would I achieve this?
May 14, 2014 at 11:48 AM
Solved my own problm by snooping around the Orchard sources for a while longer.
Using this view to display my content item gives me exactly what I want:
<html xmlns="http://www.w3.org/1999/xhtml">

            var content = Display(Model);