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

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.

share|improve this question
add comment

1 Answer 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.

share|improve this answer
add comment

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.