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, ...– Per JakobsenCommented 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.– ozdoganCommented Sep 27, 2012 at 14:02
Add a comment
|
1 Answer
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