Placement.info for custom Content Type

Topics: Customizing Orchard
Feb 24, 2011 at 11:43 AM

Hello,

I have a new Fastlink Content type, which consists of all the parts that List Content Type has. I added several Page elements to the new Fastlink and added it to footer as a widget.

Now I see a list of pages with a title, date, annotation and "more" link. How can I hide the date, annotation and "more" link only for the Fastlink Content type?

I tried to set it in the placement.info file

 <Match ContentType="Fastlink">
    <Match DisplayType="Summary">
      <Place Parts_Common_Body_Summary="Nowhere"
                 Parts_Common_Metadata_Summary="Nowhere" />
    </Match>
  </Match>

but it doesn't work like this with ContentType="Fastlink", it works only when I change it to Page -  <Match ContentType="Page">

What should I do, if I have another lists where annotation needs to be shown?

 

 

Coordinator
Feb 24, 2011 at 7:57 PM

Well, if it's Page items that you add to your custom list, those items are of course of type Page. You should either also use a custom type for what you put into that list, or if you can't, use a custom display type.