0

I'm currently using the following script on one of our sites to replace the List Title with the List Title + View Title;

<script type="text/javascript">
// Replace default page title with document.title, which is based on view name
document.getElementById("DeltaPlaceHolderPageTitleInTitleArea").innerHTML = document.title;  
</script> 

I want to change this so that instead of using the View Name, it uses the Site Name, but I'm not entirely sure how this script works.

Would this be possible?

1

You can try using _spPageContextInfo, there's and attribute called "webTitle" wich returns the name of the site collection:

document.getElementById("DeltaPlaceHolderPageTitleInTitleArea").innerHTML = document.getElementById("DeltaPlaceHolderPageTitleInTitleArea").innerHTML + " - " + _spPageContextInfo.webTitle;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.