Hide post date

Topics: Administration, General
Oct 24, 2012 at 6:24 AM

My page display posted date. How can i hide that date

 

lakmal

Oct 24, 2012 at 6:26 AM
galgodage wrote:

My page display posted date. How can i hide that date

 

lakmal

you will have to remove this line of code

 Parts_Common_Metadata="Meta:2"
from the Placement.info file its inside the Core -> Common -> Placement.info
Oct 24, 2012 at 7:10 AM

You could also specify

Parts_Common_Metadata="-"

in your theme's placement.info

Oct 24, 2012 at 7:24 AM
JLedel wrote:

You could also specify

Parts_Common_Metadata="-"

in your theme's placement.info


@JLedel Yes that works too.

  <Match ContentType="Page">
    <Place Parts_Common_Metadata="-"/>
  </Match>
This will be specific to a particular theme in orchard cms.
And Core -> Common -> Placement.info
This will be to the whole cms from the Core Framework.
What is the best way the Core or Overriding the removal of the metadata shape in the Theme placement.info???
Oct 24, 2012 at 11:41 AM

Do it in your theme. Since you can do it in a theme there is no need to modify the core. Then there's the problem with upgrading a modified core, which you don't want to do.

Oct 26, 2012 at 10:21 AM

I have updated theme placement file as  below

 

<Placement>
  <!-- Customize where the shapes are rendered -->

  <!-- 
<Parts_Common_Metadata="-"/>
  <Place Parts_Blogs_BlogArchives="Content:before"/>
  <Place Parts_Blogs_RecentBlogPosts="Content:after"/>

  <Match ContentType="Blog">
    <Match DisplayType="Summary">
      <Place Parts_Blogs_Blog_Description="Content:before"
             Parts_Blogs_Blog_BlogPostCount="Meta:3"/>
    </Match>
  </Match>
  <Match Path="/About">
    <Place Parts_Common_Metadata="-"/>
  </Match>
-->
</Placement>

 

But it didnt work, still i can see date inside page

 

lakmal

Oct 26, 2012 at 10:41 AM

Buddy the above code is commented..use this one

<Placement>
  <!-- Customize where the shapes are rendered -->

<Parts_Common_Metadata="-"/>
  <Place Parts_Blogs_BlogArchives="Content:before"/>
  <Place Parts_Blogs_RecentBlogPosts="Content:after"/>

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

</Placement>