Orchard CMS – Remove Title and Metadata(published date) in a post

orchardcms

How do I remove the Title and Metadata(published data) in a post? Can this be done in Placement.info? I tried creating a custom content but doesn't look like a best solution. I just done it with CSS but I know this could be done in another way.

Best Solution

You can edit the Placement.info file in your current theme's root folder to not display the title and publish date:

<Placement>
    <Match DisplayType="Detail">
        <Place Parts_Title="-"/>
        <Place Parts_Common_Metadata="-"/>
    </Match>
    <Match DisplayType="Summary">
        <Place Parts_Title="-"/>            
        <Place Parts_Common_Metadata="-"/>
    </Match>
</Placement>

See this post for further details: Orchard: Anatomy of a theme

Also, in case you are wondering where names like Parts_Title come from, see Customizing Orchard using the Designer Helper Tools (specifically shape tracing).

Related Question