Challenge
By default SharePoint uses content placeholder <asp:ContentPlaceHolder id="PlaceHolderPageTitle" runat="server"/> to construct title of the page shown in browser tab. How to add static string in front of the title so that it is easier to identify sites from browser tabs.
Solution
There are few alternative solutions, but I prefer the JavaScript method.
Add the following to your master page, last thing in <head> tag:
<script type="text/javascript" >document.title = ‘MYSITETITLE - ' + document.title;</script>
Now, e.g., the front page of your site will show as “MYSITETITLE - Pages - Home” in browser tab making it more convenient to browse when using multiple tabs and/or SharePoint sites, as well as making bookmarks more readable.
ya JavaScript is quite easy to use than the other because JavaScript is very helpful for validation.
ReplyDelete