Sunday, June 2, 2013

How to remove 'Pages-' from SharePoint page title

This is a pain if you have activated publishing, Page title will appear as Pages-'Name'

Master page code looks like this:
image
This place holder will be replaced with title from the page layout.

Here goes the code from page layout:image
Long story short, The two important lines here are 36 & 37. Line 36 adds the list’s name (in our case, Pages), line 37 (<SharePointWebControls:FieldValue FieldName=”Title” runat=”server”/>) adds the title value of the page (so the actual title).
I removed line 36 (and removed the dash from line 37), the 'pages' titles are now displayed as I wanted them to:
image

Hope this helps!

No comments:

Post a Comment