Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there a way to override Ribbon Save Button functionality in publishing page of specific page layout? My intention is not to override it for all publishing pages but to limit it to specific page layout?

share|improve this question

2 Answers 2

You could a create a new control deriving from the original, and add it to a custom masterpage.

I don't know if it's wise to do this in a page layout because the ribbon is on the masterpage. jQuery would be a solution here, you could just add a script in a head content placeholder on your pagelayout to enable it there only.

share|improve this answer

please create a javascript function PreSaveAction() in your page layout. In presave action will fire when you click on save button. You can write any javascript code in this function which needs to be perform just before saving the page.

This is working fine in sharepoint list, but I have not tried in publishing page

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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