Getting Content Type within a Layout template (New user, help much appreciated!)

Topics: Customizing Orchard
Jul 21, 2014 at 4:13 PM
Hi there,

I'm very new to Orchard (and even C#), and I've run into a stumbling block. I'm trying to render a table for any given content type, as specified in a query and handled by a projection. The basic setup is, I have a layout.cs file outputting data entries to a layout.cshtml file (not necessarily named "layout", just for a generic example), but to make this table, it needs to have custom headers for any content type specified in the query. Problem is, I don't know how to access the content type's NAME--not its fields or parts, but simply its name. Once I have its name, I have a working GetFields function that works just fine.

Thank you very much for your consideration!