I have some custom content type and custom page layout from that content type. This content type has HTML rich text field. And all my contents are page instances of that custom page layout. I need some "Create new" button/web part on the default page of the site, to give the content authors ability to create new content without going to standard sharepoint page creation process.

  • What is the problem you're facing? How to create the button, how to check permissions, how to create the page, ... Sep 27, 2012 at 13:57
  • I wonder how to do that, i think it is not possible OOTB. So needs custom development but how? I need some enlightments & ideas.
    – ozdogan
    Sep 27, 2012 at 14:02

1 Answer 1


I don't know which part is your problem so here is some helpers:

To security trim a bit of HTML use SPSecurityTrimmedControl

To make your page layout default (or only allowed) click 'Page layouts and site templates' in the 'Look and Feel' section of site settings

To launch the Create Page dialog use the following JavaScript:

SP.UI.ModalDialog.OpenPopUpPage(_spPageContextInfo.webServerRelativeUrl+'_layouts\u002fCreatePublishingPageDialog.aspx', null, 390)

To create a Publishing Page using code use PublishingWeb.AddPublishingPage

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.