Custom field in content summary

Topics: Customizing Orchard, Writing themes
May 1, 2011 at 10:06 AM

Hi, I just created my custom content type which have two HTML Fields but doesn't have body. I would like to display one of this HTML field in content summary in list, but I don't know how to do that.

May 8, 2011 at 8:53 PM

From memory I'm not at m computer you will need the following in your placement file:

<Place Fields_Contrib_Html__A="-" />

<Place Fields_Contrib_Html__B="-" />

Where: "A" is the name of the of the first Html field, and "B" the second, this will cause both fields NOT to show in the "Detail" view

<Place Fields_Contrib_Html_Summary__A="Content:1" />

<Place Fields_Contrib_Html_Summary__B="-" />

This will cause "A" to show in the "Summary" view