Classes on the HTML Tag in a Module

Topics: Writing modules, Writing themes
Aug 4, 2013 at 3:16 PM
I am working through some styling issues and trying to understand a bit more about how classes get added to the <html> tag on each orchard page and also how they are used. I have a custom module that includes the name of the module - "abc-calendar" in this case - as one of the classes defined. And a regular page on the site uses "contents". both include "static". I am looking in fiddler to see what i can figure out, but nothing is sticking out to me yet (maybe I'm looking in the wrong place though).

So my questions are:
1) Where do these classes get added in the orchard source?
2) How are these classes used?


regular page:
<html lang="en-US" class="static contents"> 
custom module:
<html lang="en-US" class="static abc-calendar"> 
Coordinator
Aug 5, 2013 at 1:43 AM
The html tag is rendered by document.cshtml.
Aug 5, 2013 at 2:37 AM
Perfect thanks. Looks like it calls ClassForPage() method, which i can study to figure out what it does.