Stop date time display

Topics: Administration, General
Nov 20, 2011 at 5:29 AM

Hi,

 

When i created page page content display date and time like below

Nov 20 2011 5:22 AM

 

How can i stop that

lakmal

Coordinator
Nov 20, 2011 at 8:17 AM

With placement. <Place Parts_Common_Metadata ="-"/>

Feb 12, 2012 at 7:38 PM

Hi,

haven't found "Parts_Common_Metadata", have delete ...

"<div class="published">@Display.PublishedState(createdDateTimeUtc: Model.ContentPart.CreatedUtc, publisheddateTimeUtc: Model.ContentPart.PublishedUtc)</div>"

in the file ...  "Parts.Common.Metadata.cshtml"

in the folder ...\core\common\views\

...and it works, no Time no Date on the page.

Hope this is also a right way to delete the Display of Time/Date.

The Line ...

"<div class="published">@Display.PublishedState(createdDateTimeUtc: Model.ContentPart.CreatedUtc, publisheddateTimeUtc: Model.ContentPart.PublishedUtc) </div>"

is also in the file "Parts.Common.Metadata.cshtml" in  ...\core\common\views    ...  don't know the function of the file.


I think the Display of time and date should be switched on/off by creating a page.

Kind Regards
Manfred

 

Feb 12, 2012 at 8:37 PM

You put <Place Parts_Common_Metadata ="-"/> in your placement.info.

Feb 13, 2012 at 12:52 PM

... and in which folder, there are 18 files of placement.info

Feb 13, 2012 at 1:59 PM

In your theme's folder.

Feb 13, 2012 at 2:22 PM

Sorry,

in my themes folder are 2 placement.info files.


the code of the FIRST file under

....\themes\BlankNoggin\

<Placement>
 <Match DisplayType="Detail">
  <Place Parts_Tags_ShowTags="Footer:1"/>
 </Match>
 <Match DisplayType="Summary">
  <Place Parts_Tags_ShowTags="Footer:4"/>
  <Place Parts_Comments_Count="Footer:5" />
 </Match>
</Placement>


the code of the SECOND file under

...\themes\TheThemeMachine\

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

  <!--
  <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>


the second file contains already  <Place Parts_Common_Metadata="-"/>,
should it add only in the first file?
and under which "<Match DisplayType=...." Detail or Summary ?


Feb 13, 2012 at 3:03 PM

You should place it in your theme, BlankNoggin. Where to place it depends on where you don't want it to show up. If you don't want metadata on any page at all, put it directly under Placement. Otherwise, you use a specific Match attribute. Check the documentation to find out more: http://docs.orchardproject.net/Documentation/Understanding-placement-info!

 

PS. The content in placement.info for The Theme Machine is in a comment, so it will not affect anything.

Feb 13, 2012 at 4:26 PM

Thanks a lot!  Now it's clear.