Display / Not dispaly part in a list view

Topics: General
Jun 30, 2012 at 11:12 AM

How can I change the behavior of showing or not showing part in a list view?

For example, I have FB like part. I want it to be displayed in a single post view, but not in a posts list on the blog page.

Developer
Jun 30, 2012 at 12:27 PM

You can use the Placement.info file for that. I would send you a link to the docs on this, but I think that's currently being migrated or something.
So let me quickly give you the gist using an example:

<Match DisplayType="Summary">
    <Place Parts_FaceBook_Shape="-"/>
  </Match>

Basically you're instructing Orchard to not render the shape called "Parts_Facebook_Shape" when being displayed for the "Summary" display type (note that I'm using a sample shape name; I don't know what the actual shape name is that you're using).

The "-" value causes the shape to be hidden.

Coordinator
Jul 1, 2012 at 2:52 AM

Migrated? Not sure what you mean by that. Here is the article on placement: http://docs.orchardproject.net/Documentation/Understanding-placement-info

Jul 1, 2012 at 7:29 AM

Thank you both, that helped!

Developer
Jul 1, 2012 at 1:38 PM
Edited Jul 1, 2012 at 1:39 PM
bertrandleroy wrote:

Migrated? Not sure what you mean by that. Here is the article on placement: http://docs.orchardproject.net/Documentation/Understanding-placement-info

That was just a wild assumption since the docs weren't available. Good to see it's back online.