Orchard CMS custom theme - each page displays a title and date stamp

I created a custom theme. Each page displays the name and date stamp at the top.

I found posts with the comments "Placement.info" in the "Topic" route, but this has no effect.

How to remove both of them?

+4
source share
2 answers

You do not need to delete the details, just hide them from the screen using the placement.info file. Common and Title components are useful parts for including a page. Especially the general part should be included in most types of content, since it stores information about when the item was changed, published, etc.

Details are displayed by default. To hide them, you need to add themes to your layout information to override and hide the parts display forms, for example. for page type:

<Placement> <Match ContentType="Page"> <Match DisplayType="Detail"> <Place Parts_Common_Metadata="-"/> <Place Parts_Title="-"/> </Match> <Match DisplayType="Summary"> <Place Parts_Common_Metadata_Summary="-"/> <Place Parts_Title_Summary="-"/> </Match> </Match> </Placement> 

This hides the metadata and title for both the details and the list view, placing them in the “-” zone. Since the "-" zone does not exist, forms are not displayed.

For more information on placement, see these documents: http://docs.orchardproject.net/Documentation/Understanding-placement-info

+10
source

I went to the Content / Content Types / Edit Page

Remove 'Title' and 'Parts Common' - it seems to fix it.

-3
source

Source: https://habr.com/ru/post/1492212/


All Articles