SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
What is the problem you're facing? How to create the button, how to check permissions, how to create the page, ... – Per Jakobsen Sep 27 '12 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 '12 at 14:02
up vote 0 down vote accepted

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

share|improve this answer

Your Answer


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.