Can't Kill Date Stamp MetaData

Topics: General
Dec 10, 2011 at 8:16 AM

All attributes in my placement.info are successfully prevenint rendering of select parts, except for the Parts_Common_Metadata in the "BlogPost" content type.  My placement file looks like this:

   <Match ContentType="Blog">
    <Match DisplayType="Summary">
      <Place Parts_Blogs_Blog_Description="Content:before"
             Parts_Blogs_Blog_BlogPostCount="Meta:3"
             />
    </Match>

      <Place
             Parts_Blogs_Blog_Description="-"
             Parts_RoutableTitle="-"
             Parts_Common_Metadata="-"
             />

  </Match>
    <Match ContentType="BlogPost">
    <Place
            Parts_Common_Metadata="-"   
            Parts_Common_Body_Summary="-"
            Parts_RoutableTitle="-"
            />
    </Match>
  <Match ContentType="Page">
    <Place  Parts_Common_Metadata="-"/>
  </Match>



Even the ContentType="Blog" is correctly suppressing the metadata.  Why would the BlogPost be impervious to suppression?  My placement file is in my theme.

Developer
Dec 10, 2011 at 9:45 AM

Hmm weird! heres a sample of one that is working for me..

  <Match ContentType="BlogPost"> 
    <Match DisplayType="Detail">
      <Place Parts_Common_Metadata="-" />
    </Match>   
  </Match>

Dec 10, 2011 at 8:58 PM

As a sanity check, I created a new Orchard site, created a blog, and set the placement file again with the Parts_Common_Metadata="-" again.  Same result.  The date and comment-count will not go away from each blog post.

Coordinator
Dec 10, 2011 at 9:56 PM

Where did you put the placement file? Also, did you try shape tracing?

Dec 10, 2011 at 10:57 PM
Edited Dec 11, 2011 at 9:20 AM

i found a similar issue.  My placement file is in my theme:

==============

<Placement>

 <Place Parts_Media_Summary="-"/>
  <Place Parts_Media_Embed="-"/>

  <!--<Place Parts_Tags_Edit="-"/>-->
  
<Match ContentType="HouseList">
<Place Parts_RoutableTitle="-"/>
<Place Parts_Common_Metadata="-"/>
</Match>


<Match ContentType="House">

    <!--<Match DisplayType="AdminSummary">
<Place Parts_Tags_Edit="-"/>
</Match>-->

<Place Parts_Tags_Edit="-"/>

    <!--<Match DisplayType="Admin">
<Place Parts_Tags_Edit="-"/>
</Match>-->
<Place Parts_HousePart_Edit="Content:2"/>
<Place Fields_LayoutText_Edit="Content:3"/>
<Place Fields_LayoutEnumeration_Edit="Content:4"/>
<Place Fields_LayoutEnumeration="-"/>
<Place Fields_LayoutText="-"/>

<Match DisplayType="Summary">
<Place Parts_Common_Metadata_Summary="-"/>
<Place Parts_ImageGallery="-"/>
<Place Parts_Common_Body_Summary="-"/>
<Place Parts_Common_Metadata_Summary="-"/>
<Place Parts_Google_Plusone="-"/>
<Place Parts_Share_ShareBar="-"/>
<Place Parts_Comments_Count="-"/>
<Place Parts_Tags_ShowTags="-" />

<Place Parts_FieldsLayoutPart="-"/>
      <Place Parts_NewItem="Header:10"/>
<Place Fields_Enumeration="-"/>
<Place Fields_Contrib_Image="-"/>
      <Place Parts_HousePart="Content:2"/>
    </Match>
<Match DisplayType="Detail">
      <Place Parts_NewItem="Header:10"/>
      <Place Parts_Google_Plusone="Header:11"/>
      <Place Parts_Share_ShareBar="Header:12"/>
      
      <Place Parts_HousePart="Content:2"/>
      <Place Fields_Enumeration="Content:3"/>
      <Place Parts_HiddenMapPart="Content:4"/>
<Place Fields_Contrib_Image="-"/>
<Place Parts_Tags_ShowTags="-" />

<Place Parts_FieldsLayoutPart="Content:8.1"/>
<Place Parts_Common_Body="Content:8.2;Wrapper=House_BodyTextWrapper"/>
      
      <Place Parts_ImageGallery="Footer:5;Wrapper=House_ImageGalleryWrapper"/>
<Place Parts_Comments="Footer:6" />
      <Place Parts_NextPreviousLinks="Footer:10"/>
</Match>
</Match>

 

</Placement>

=============

notice <Place Parts_Tags_Edit="-"/> or   <!--<Place Parts_Tags_Edit="-"/>-->  , i tried all of them, but can not let tag textbox dispear. 

only Way to add <Place Parts_Tags_Edit="-"/> in the  placement.info of  the Orchard.tags Module

Dec 11, 2011 at 8:12 AM

Found the problem through shape tracing, though I'm surprised at the result.  I wasn't using the proper placement name, which was "Parts_Common_MetaData_Summary".  What I don't understand is why I've found perhaps three articles online explaining how to hide that element, and none of them used that particular part name.

Oh well. At least the problem is solved, and I'm becoming versed in the shape tracer. :)

Coordinator
Dec 11, 2011 at 8:45 AM

What shape name were they using?