Custom field in a custom content type

Topics: Writing themes
Jan 22, 2012 at 6:26 PM

Well hello there.

I'm gonna get straight to the point...

1. I've created custom content type named Book

2. I've added a text field to it named Intro

3. I've created a List called "Most recent", a list of last 3 Books

4. Made my own theme and overridden template called Content-Book.Summary.cshtml

Now I'm having a problem accessing that specific field. As I'm not very familiar with Clay ins and outs could you be of any assistance to me?

I've fiddled a bit with debugging but haven't  found out any elegant way of accessing that field "Intro", at least not without blindly accessing it in "Fields" IList (or is it IEnumerable) and doing some sort of Filed name comparation, never mind this. Just please, if you have an elegant idea, shoot!

Cheers,

C out~

Coordinator
Jan 25, 2012 at 7:07 AM

Install Designer Tools, enable the Shape Tracing feature, go back to your page, open the shape tracing zone and go to the Model tab. http://docs.orchardproject.net/Documentation/Customizing-Orchard-using-Designer-Helper-Tools