Placement bug?

Topics: Core, General, Troubleshooting
Mar 26, 2012 at 7:17 PM

I have a blog and a blogpost with the following placement:

<Match ContentType="BlogPost">
    <Match displayType="Detail">
      <Place Parts_Common_Body="Content:1"/>
    </Match>
    <Match displayType="SummarySmall">
      <Place Parts_Title="Content:1;Alternate=BlogPostSummarySmallTitle"/>
      <Place Parts_Common_Body="-"/>
      <Place Parts_Common_Body_Summary="Content:2;Alternate=Parts_Common_Body_Summary-BlogPost"/>
    </Match> 
  </Match>

The strange thing is that in DisplayType Detail the rules of SummarySmall are picked also. Is this a known bug of placement (using orchard 1.4) that it's mixing up the placement of different displaytypes?

Coordinator
Mar 27, 2012 at 5:26 AM

No. File it. Workaround may be to split into two matches with both contenttype and displaytype:

<Match ContentType="BlogPost" displayType="Detail">
  <Place Parts_Common_Body="Content:1"/>
</Match>

<Match ContentType="BlogPost" displayType="SummarySmall">
      <Place Parts_Title="Content:1;Alternate=BlogPostSummarySmallTitle"/>
      <Place Parts_Common_Body="-"/>
      <Place Parts_Common_Body_Summary="Content:2;Alternate=Parts_Common_Body_Summary-BlogPost"/>
</Match>