Using Alternate in Placement not working

Topics: Troubleshooting
Aug 19, 2011 at 10:13 AM
Edited Aug 19, 2011 at 10:13 AM

Ok I have a custom type called OliverContent which has a BodyPart and when it renders with display type  Summary I would like to override the default Parts_Common_Body_Summary to one of my own templates (actually the same one I use when rendering the detail display).  So in my Placement file I have the following:


    <Match ContentType="OliverContent" DisplayType="Summary">
        <Place Parts_Common_Body_Summary="Content:after;Alternate=Parts.Common.Body-OliverContent"/>
        <Place Parts_Common_Metadata_Summary="-" />
        <Place Fields_Contrib_Image="Content:2.4"/>

However when it renders it still shows the html rendered from the original template (Parts_Common_Body_Summary).  However when inspecting the element using the Shape Tracing tool it shows that it *is* using the alternate template and shows the correct template content but the html is incorrect.


For now I have just created one of the suggested alternate templates, which works, but not the solution I was after!

Thanks for your help

Aug 19, 2011 at 4:21 PM

Try using this in your


Aug 19, 2011 at 4:22 PM

Or maybe Alternate=Parts_Common_Body__OliverContent

Aug 23, 2011 at 12:42 PM

Arrr yes of course, I forgot about the convention used here.  I was looking at the template names in the Shape Tracing tool!

Thanks a lot for your help.