This project is read-only.

Page title and date modified?

Topics: Customizing Orchard, General
Feb 16, 2011 at 10:28 PM

By default the Page Title and Date-time of last modification get injected into the body of the page, at least when using the default TheThemeMachine.

Where is this occurring and how do I disable it?

Feb 17, 2011 at 12:18 AM

The title is injected as shape Parts_RoutableTitle by the RoutePartDriver in Core/Routable. The date is injected as part of Parts_Common_Metadata by the CommonPartDriver in Core/Common.

You can suppress the display of each shape from your file by placing each of the shapes in the "-" black hole zone.

Feb 17, 2011 at 1:11 AM

Thank you Bertrend. I also discovered I could do it in my theme's site.css file as follows:

/* Hide the page title (in body) and date published */
.content-item header  h1 {display:none;}
.content-item .metadata .published {display:none;}

I like the idea of using the placementinfo file better, so I looked at:

which states "A theme can modify where shapes are rendered by including a file at the root of the theme's folder."

I tried placing the following in the root of my theme but it did not work:

    <!-- available display shapes -->
    <Place Parts_Routable_Edit="Content:before.5"/>
    <Match DisplayType="Detail">
        <Place Parts_RoutableTitle="Header:-"/>
    <Match DisplayType="Summary">
        <Place Parts_RoutableTitle_Summary="Header:-"/>


What did I do wrong?

Feb 17, 2011 at 1:40 AM

You do not want to send markup to the browser that you are not going to display. CSS is entirely the wrong way of doing that except if that markup is going to have some hidden function on the client side.

Try this:

    <Match DisplayType="Detail">
        <Place Parts_RoutableTitle="-"/>
    <Match DisplayType="Summary">
        <Place Parts_RoutableTitle="-"/>

Feb 17, 2011 at 2:05 AM

That did the trick. I totally agree that CSS is not the best way to go.

I think I need to go to the bookstore and purchase "Orchard for Dummies" ;-)

Feb 18, 2011 at 12:10 AM

Guys, this is just what i was looking for also. thanks

would actually be a nice setting to include from the admin section as well, as the date/time info will not be desired for a lot of pages.. it is more useful in a blog post etc. 

Feb 25, 2011 at 5:33 AM

How can I find out the display shapes so I now what I can throw away?

Feb 25, 2011 at 5:36 AM

You can look at what parts you have on your content type and track down the drivers (that's where those shapes are getting created. In Orchard 1.1, we are shipping a tool that shows you all the shapes that are being displayed and what alternates are available for them.

Feb 25, 2011 at 5:44 AM

So the file goes in the root of the theme, correct? If I follow your earlier example, that hides the title and not the date.

Feb 25, 2011 at 5:51 AM

The date is in another shape:


Feb 25, 2011 at 6:00 AM

That worked. Can't wait for 1.1 to get that tool. Guess I won't bother looking into building something for it.

So, my Placement file looks like this:

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

I am singling out the Page, because I don't want to hide the date from other elements like Blog posts. I would like to remove it from the Blog "Page". How can I do that?

Feb 25, 2011 at 6:04 AM


Jan 18, 2013 at 5:24 PM

Ok, I to am trying to use this technique and its not working. I want to hide the Title and Date from all pages including the Home Page. I am using the Theme Machine, can anyone help me?

Jan 18, 2013 at 6:24 PM

Specifically, I'm trying to remove it from the home page.

Jan 18, 2013 at 7:21 PM

Show exactly what you tried and tell us how it failed.

Jan 18, 2013 at 9:42 PM

I tried:

    <Match Content="Page">
    <Match DisplayType="Detail">
        <Place Parts_RoutableTitle="-"/>
    <Match DisplayType="Summary">
        <Place Parts_RoutableTitle="-"/>

Jan 18, 2013 at 9:54 PM

What Orchard version are you running on?

Jan 18, 2013 at 9:58 PM


Jan 18, 2013 at 9:59 PM

Where did you put the file?

Jan 18, 2013 at 10:07 PM under the theme folder

Jan 18, 2013 at 10:19 PM

If memory serves me right, wasn't the Parts_RoutableTitle shape generated by the RoutablePart, which was deprecated since 1.4?

Jan 18, 2013 at 10:20 PM

Ok, how can I remove the Title and Date from Page Headers? Any ideas?

Jan 19, 2013 at 1:23 AM

<Place Parts_Title="-" />
<Place Parts_Common_Metadata="-"/>


Jan 19, 2013 at 5:39 AM

Good catch.

Jan 20, 2013 at 3:53 PM

Thank you, that worked.

Jan 20, 2013 at 3:57 PM

I have another question. If I want to make a whole zone, such as Content Zone not show up for a given page, anyone have an idea on how to achieve this?

Jan 20, 2013 at 4:16 PM

Do you mean the "global" Content zone on the Layout shape, or the "local" Content zone on a content item shape?

Jan 20, 2013 at 6:45 PM

I don't think there is a way to hide an entire zone. Just hide the separate components via the placement file. 

Jan 20, 2013 at 7:00 PM

Hiding global zones could be done by overriding the Layout template.

Check this out


Feb 18, 2013 at 8:20 PM
Ok, so I want to remove the Title and Date off all pages except the Blog and Blog post page. I use this to remove the Title and Date globally:
<Match Content="Page">
<Match DisplayType="Detail">
    <Place Parts_Title="-" />
    <Place Parts_Common_Metadata="-"/>
But that removes it from the Blog pages also, how to achieve this?
Feb 19, 2013 at 12:44 AM
On the first line, try changing the "Content" attribute to "ContentType".
Feb 19, 2013 at 1:11 AM
That worked. Thanks a lot my friend.

Tommy Havens
May 10, 2014 at 4:04 PM
Edited May 10, 2014 at 10:21 PM
Problem been solved.
Sep 3, 2015 at 3:57 PM
sfmskywalker wrote:
On the first line, try changing the "Content" attribute to "ContentType".
Thanks for the solution! :)