How to add ContentType as Id to the html or body tag.

Topics: Customizing Orchard
Dec 5, 2014 at 8:09 PM
I want to add the ContentType as Id to the html or body tag.

And I find ClassForPage(LayoutExtensions.cs) function that will return something similar.

But I can't figure out how does that ContentType got injected. Could some one explain that function a little bit?


Or could you please recommend a method to inject the ContentType? Thank you.
Dec 5, 2014 at 8:38 PM
Edited Dec 5, 2014 at 8:38 PM
OK. I find the place that add the class.
It is in the Orchard.Web\Core\Contents\Views\Item\Display.cshtml.

Is it possible to overwrite that file in the template?