How to set browser page title in Plone

I am trying to find how to set the title of a browser page :. The main goal is to load it into the "display" drop-down menu in my content type.

I look in the code CMFDynamicViewFTI. The only example that the browser uses: view and I don’t know what it is, I have never seen the browser: view. Is this a solution? Does the browser support: viewing the customerize support (the browser: view directive does not support the template parameter in zcml).

So, one way or another, to set the title (as indicated in the "display" menu) of the browser: page?

+6
source share
1 answer

A browser:page is essentially just a browser: a view directive with additional template support. You can set the title using the zcml directive, as you can for browser:view .

To set the title for the display menu, add the menu and title attributes to the browser:page directive:

 menu="plone_displayviews" title="title goes here" 

You may also need to explicitly enable ZCML for plone.app.contentmenu to make sure the plone_displayviews menu is plone_displayviews :

 <include package="plone.app.contentmenu" /> 
+7
source

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


All Articles