New answers tagged publishing-page
You can use SharePoint API : PublishingWeb (http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.publishingweb_methods.aspx) with the method "AddPublishingPage" if you need to customize this page after creation (i.e. add webparts on it), simply use SPWebPartManager ...
once you open it with SharePoint Designer select Advanced mode which allows you to edit the publishing page.
For example if your publishing page is an enterprise wiki page edit the enterprisewiki.aspx page in sharepoint designer. than edit this part : <PublishingWebControls:RichHtmlField id="PageContent" FieldName="PublishingPageContent" AllowTables="true" AllowEmbedding="true" and add the html element html="<p>this text will be ...
If you are using a custom master page for your search centre then it is probably messing up the layout. Try switching to the standard minimal.master while you edit the page. This should make sure the Add button reappears. You can then switch back to your custom master page when complete.
I was asked this question in an interview. The answer is clearly described in the below link. http://msdn.microsoft.com/en-us/library/ms543497(v=office.14).aspx
Top 50 recent answers are included