Expand my Community achievements bar.

How to edit tab name of editor page

Avatar

Level 2

In the editor, the site title is displayed as the name of the tab at the top of the webpage. In the picture below, it is called 'Home'. Is is possible to change this?

 

mcoh_0-1667932111464.png

 

3 Replies

Avatar

Community Advisor

Yes, it's possible to change this. Go to that page and open the page properties of it and change the title as per the below screenshot.

 

If you don't want to show the page title,  use Navigation Title to specify a separate title for use in the navigation. If empty, the Title will be used.

 

AvinashGupta01_2-1667933428075.png

 

 

Hope this helps.

Avatar

Level 2

Is it possible to provide a generic name across all editor pages?

Avatar

Community Advisor

Yes, @mcoh in template component, find the head section (mostly -> head.html) where you notice the following line of code or something similar 

<title data-sly-test.pageTitle="${page.title}">${pageTitle}</title> 

replace it with 

<sly data-sly-test.editOrDesign="${wcmmode.edit || wcmmode.design}"/>
<title data-sly-test="${editOrDesign}"> Editor </title> // In editor and design mode
<title data-sly-test="${!editOrDesign && page.title}"> ${page.title}</title> // In preview and publish modes