1

I am trying to create a publishing page (site page) using SharePoint 2010, Jquery, Client Object Model.

Any reference or help will be appreciated.

Let me know if any more details are required.

1 Answer 1

1

SharePoint Server features, including Publishing are not supported in the Client Object Model (in SharePoint 2010), you'll need to use the Server object model to create pages.

I'm not saying it's impossible, but you may have to end up with something quite 'hacky' to get it work.

You'd need to basically create a new template redirect page item in the Pages library, and set the appropriate content type (that matches your desired Page Layout's content type). However, if the Page Layout is new to the Pages library, the content type will need to be added to the list. All of this is handled by the Server object model code for you.

If you do need some sort of automated way of creating lots of pages, triggered by something the user clicks on the page, you could implement this in an application page perhaps, which runs the server side code required, or write a web service (that implements the server side code) hosted in SharePoint that can be invoked by jQuery.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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