Creating Publishing Pages
In SP2010, the steps to create a page was Site Actions > More Options > Create > Page
Then we'd have the options to select a Page, Publishing Page, or Web Part Page.
I can't seem to figure out where this is in SP2013. I know I can go to Site Contents and select Pages > File > New Document. That gives me the option to create a new Page, Article Page, Welcome Page, or Error Page.
Where can I create the pages above like in 2010? The Publishing feature is enabled by the way.
thanks
Hi,
According to your post, my understanding is that you wanted to create Publishing Page.
You can create Pages from Site Actions (Settings) Menu in SharePoint 2013.
From the Settings menu (the gear icon), you’ll find an
Add a Page item:
More information:
The Proper Way to Create Publishing Pages in SharePoint 2013
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support
Similar Messages
-
Creating publishing page in specific folder and with custom page layout using JSOM
Hi!
I have a site collection under my root, in which I have a page library with a folder inside. I want to create a publishing page inside the folder using JSOM. The API provides the following information on the three possible ways of how you can create a publishing
page.
PublishingPageInformation with all defaults.
PublishingPageInformation.Name and PublishingPageInformation.PageLayoutListItem.
PublishingPageInformation.Name, PublishingPageInformation.PageLayoutListItem and PublishingPageInformation.Folder.
Source - SP.Publishing.PublishingPageInformation Properties (sp.publishing)
Since I want to create the page in a specific folder in the page library, I have to go for the last option.
I have a function call chain that look as follows:
getLanguageID(webUrl, languageID)
.then(function(resolveVal) {
language = resolveVal;
return checkPageExist();
.then(getEditorialNewsFolderJSOM)
.then(getAssociatedPageLayoutListItem)
.then(addPublishingPage)
The first two methods,
getEditorialNewsFolderJSOM
getAssociatedPageLayoutListItem
fetches the required data as SP.Folder- and SP.ListItem-objects.
The problem occurs when
addPublishingPage
is called. This method, in turns calls this function.
var pageInfo = new SP.Publishing.PublishingPageInformation();
pageInfo.set_name(publishPage.title);
pageInfo.set_pageLayoutListItem(pageLayoutListItem);
pageInfo.set_folder(editorialNewsFolder);
pageCreationContext.newPage = pubWeb.addPublishingPage(pageInfo);
clientContext.load(pageCreationContext.newPage);
clientContext.executeQueryAsync(function() {
publishPage.isPageCheckOut = true;
resolve();
}, function(error) {
reject(precio.intranet.resource.errCreateContent_addPublishPage);
The error happens when this function is called with the page information object.
SP.Publishing.PublishingWeb.addPublishingPage(pageInformation)
Error:
Cannot read property '$2t_0' of undefined
and it happens in SP.Runtime.js.
I've tried this
sample code from the MSDN-team, and added the pagelayout and folder properties, but it renders the same error.
Creating a page directly in the page library with a blank SP.PublishingPageInformation object works perfectly fine!
What could possibly be wrong? The error isn't something that I can debug myself since it happens in SP.Runtime.js, and the documentation for this is very sparse!
Any help on how to resolve this issue would be helpful!Hi Vinay,
This may be useful:
https://blogs.oracle.com/jdevotnharvest/entry/remote_task_flow_vs_wsrp -
How to get the page layouts programmatically and create a page for that pagelayout
how get the page layouts programmatically and create a page for that pagelayout and add webpart
please help me with da code.Thanks
adityadugyalaHi if your page layouts alreday created then create new page programaticaaly and apply your page ayouts to that page by coding you can do something like following
PublishingWeb publishingWeb =
PublishingWeb.GetPublishingWeb(web);
PageLayout[] layouts = publishingWeb.GetAvailablePageLayouts();
PageLayout layout = layouts[0];
string pageName =
"MyPublishingPage5.aspx";
PublishingPage newPage = publishingWeb.GetPublishingPages().Add(newFolder.Folder.ServerRelativeUrl +
"/"+ pageName, layout);
newPageUrl = web.Url +"/" + newPage.Url;
newPage.Description = "This my sample publishing page";
newPage.Title = "My Publishing Page";
newPage.Update();
Please follow link
http://blogs.msdn.com/b/sowmyancs/archive/2008/03/15/create-publishing-pages-in-portal-sites-programmatically.aspx
Please mark answer , if you think answer is helpful or correct. -
Hello Everyone,
deployed page layout as based this blog
http://www.eliostruyf.com/provision-your-html-designs-master-pages-page-layouts-to-sharepoint-2013/, but while trying to create Publishing pages under Page
"Error: This page is not using a valid page layout. To correct the problem, edit page settings and select a valid page layout."
my xml as below
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="PageLayouts" Url="_catalogs/masterpage" RootWebOnly="TRUE">
<File Path="PageLayouts\DataByte_Home.html" Url="DataByte_Home.html" Level="Draft" ReplaceContent="true" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE">
<Property Name="Title" Value="DataByte_Home" />
<Property Name="MasterPageDescription" Value="DataByte_Home" />
<Property Name="ContentType" Value="$Resources:cmscore,contenttype_pagelayout_name;" />
<Property Name="PublishingPreviewImage" Value="~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/WelcomeSplash.png, ~SiteCollection/_catalogs/masterpage/$Resources:core,Culture;/Preview Images/WelcomeSplash.png" />
<Property Name="PublishingAssociatedContentType" Value=";#$Resources:cmscore,contenttype_welcomepage_name;;#0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF390064DEA0F50FC8C147B0B6EA0636C4A7D4;#" />
</File>
</Module>
<Module Name="CustomPages1" Url="Pages" Path="" RootWebOnly="FALSE">
<File Name="Home.aspx" Url="Home.aspx" Type="GhostableInLibrary" Path="PageLayouts\DataByte_Home.html" IgnoreIfAlreadyExists="TRUE">
<Property Name="Title" Value="Home" />
<Property Name="PublishingPageLayout" Value="~SiteCollection/_catalogs/masterpage/DataByte_Home.aspx"/>
<Property Name="ContentType" Value="Page" />
</File>
</Module>
</Elements>
as feature activation i am execution same code to upgrade .html to .aspx.
please guide me and give me some suggestion to packaged solution in single wsp(with Publishing pages, Page layouts and master page and site template to create site with all content)?Hi,
Usually I separate page layout and publishing page into two different modules. Then you deploy first the page layout module to ensure that SP will create the aspx file. After that the second module lets SP to apply the existing page layout to your publishing
page.
It's just an idea. I am not 100% sure. Let me know.
Regards,
Vinod -
Hello everyone,
I've got the task to programmatically import data to a moss web by add publishing pages to the pages-library with enabled moderation and major/minor-versioning.
This is not really difficult but the main issue is to set the values for the fields "Created", "Created by", "Modified" and "Modified by".
Also this is not relly difficult. By setting the internal field-properties "Author" for Created by and "Editor" for Modified by there values are set.
But the main problem now is, that I have to approve the publish page. After that, the value of the "Modified"-Field is change to the current datetime which is not acceptable.
If I redo an updating of the listitem, the file-version is increased to 1.1 which is also not acceptable. I do this by .UpdateOverwriteVersion(), which MSDN says of that it doesn't increase the version but indeed it does.
Following an example code of my approach:
using (SPSite spSite = new SPSite(SiteCollectionURL))
using (SPWeb spWeb = spSite.OpenWeb())
PublishingWeb publishingWeb = PublishingWeb.GetPublishingWeb(spWeb);
PageLayout[] layouts = publishingWeb.GetAvailablePageLayouts(<Guid of my pageLayout>);
if (layouts != null && layouts.Length > 0)
PageLayout layout = layouts[0];
PublishingPage newPage;
// add new publishing page
newPage = publishingWeb.GetPublishingPages(0).Add("test.aspx", layout);
newPage.Title = "testpage";
newPage.ListItem[SPBuiltInFieldId.Comments] = "test comment";
newPage.Update();
newPage.CheckIn("Checked in programmatically");
SPListItem tmpListItem = publishingWeb.PagesList.GetItemById(newPage.ListItem.ID);
string creationDate = "2009-11-05T22:35:10Z";
string modifyDate = "2009-11-06T22:35:10Z";
tmpListItem["Author"] = "1;#User 1";
tmpListItem["Editor"] = "2;#User 2";
tmpListItem["Created"] = creationDate;
tmpListItem["Modified"] = modifyDate;
tmpListItem.UpdateOverwriteVersion();
// data is now alright set, now approve
tmpListItem.File.Approve("Approve test");
// publishingpage is now approved but modified-date has changed, try to reset data
SPListItem updItem = spWeb.GetList(spWeb.Url + "/Pages").GetItemById(tmpListItem.ID);
updItem["Author"] = "1;#User 1";
updItem["Editor"] = "2;#User 2";
updItem["Created"] = creationDate;
updItem["Modified"] = modifyDate;
tmpListItem.UpdateOverwriteVersion();
// now all four values are correct but now version is 1.1 and approval status 'draft' again
Also updating the listitem by ProcessBatchData doesn't do it becaue I couldn't successfully update the author/editor-fields.
Do you have any working ideas or hints for me?
Greetings from Germany,
LoneSurvivorI think iv cracked it...
Coppied straight from my code so the variable names dont match but the principal is there...
$dstfile.ListItemAllFields["Author"] = ($author.ID.ToString() + ";#" + $author.LoginName)
$dstfile.ListItemAllFields["Editor"] = ($modifier.ID.ToString() + ";#" + $modifier.LoginName)
$dstfile.ListItemAllFields["Created"] = $srcfile.TimeCreated.ToLocalTime()
$dstfile.ListItemAllFields["Modified"] = $last.ToLocalTime()
# changes to editor have to be done by Update or UpdateOverwriteVersion
$dstfile.ListItemAllFields.UpdateOverwriteVersion()
if ($file.Level -eq "Published") {
# publish not needed and overwrites 'Editor' so dont use
# $dstfile.Publish($file.CheckInComment)
# use .Approve() which updates the major minor versions too
$dstfile.Approve($file.CheckInComment)
# approve changes the dates so correct here
$dstfile.ListItemAllFields["Created"] = $srcfile.TimeCreated.ToLocalTime()
$dstfile.ListItemAllFields["Modified"] = $last.ToLocalTime()
$dstfile.ListItemAllFields.SystemUpdate() -
Creating new publishing page and viewing Properties throwing exeption
Hi,
I am creating new OOB publishing page using “Article Page” layout.
Please note Versioning and approval enabled on this “Pages” library. Also there is no workflow attached to this.
Steps I am following:
Goto Pages library.
Create new Article page from add new item
After that select that item and click on “View Properties” button from top ribbon. please not I have not checkedin page yet. It’s throwing exception as below.
System.ArgumentException: Item does not exist. It may have been deleted by another user.
at Microsoft.SharePoint.SPList.GetItemById(String strId, Int32 id, String strRootFolder, Boolean cacheRowsetAndId, String strViewFields, Boolean bDatesInUtc, Boolean bExpandQuery)
at Microsoft.SharePoint.SPList.GetItemById(String strId, Int32 id, String strRootFolder, Boolean cacheRowsetAndId, String strViewFields, Boolean bDatesInUtc)
at Microsoft.SharePoint.Publishing.CachedListItem.FetchAllFields()
at Microsoft.SharePoint.Publishing.CachedListItem.GetFieldContents(String index, Boolean refetchIfFieldNotFound)
at Microsoft.SharePoint.Publishing.WebControls.SummaryLinkFieldControl.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Microsoft.SharePoint.We...
896a6c9c-e172-e000-b2f5-76c261783eb4
however same steps followed in our DEV environment and seems ok. only this issue with our another environments.
Also once I check in page and then goto "View Properties" then it's working.
Thanks in advance! Br,KSDo you have any workflow on the publishing library? The error you mention I've seen sometimes when uses have created workflows that reference custom columns which are then deleted or removed.
Additionally, if a user has insufficient permissions to start an attached workflow, this error can also be encountered.
Steven Andrews
SharePoint Business Analyst: LiveNation Entertainment
Blog: baron72.wordpress.com
Twitter: Follow @backpackerd00d
My Wiki Articles:
CodePlex Corner Series
Please remember to mark your question as "answered" if this solves (or helps) your problem. -
Create new pages but don't publish yet.
Is it possible to create multiple pages ready for publishing but only publish selected ones today?
To clarify if I create 10 pages today but don't want to publish them all today, 5 today 5 tomorrow is there a way to publish them in stages? The publish selection only has the options of publish 'all or publish 'modified'.
Thanks MickGo to plan view, right click a page and deselect "Export":
-
Sandbox Solution to create a Publishing page using page layout.
How to create a Sandbox Solution to create a Publishing page using page layout.
Hi Sriram,
You can use the below code
using (SPSite site = new SPSite(url))
using (SPWeb web = site.OpenWeb())
web.AllowUnsafeUpdates = true;
SPList wiki = web.Lists["Pages"];
String urlWiki = wiki.RootFolder.ServerRelativeUrl.ToString();
PublishingSite pubSite = new PublishingSite(web.Site);
string pageLayoutName = "Layoutname.aspx";
string layoutURL = web.Url + "/_catalogs/masterpage/" + pageLayoutName;
PageLayout layout = pubSite.PageLayouts[layoutURL];
PublishingWeb publishingWeb = PublishingWeb.GetPublishingWeb(web);
string pageName ="home.aspx";
PublishingPage newWikiPage = null;
newWikiPage = publishingWeb.GetPublishingPages().Add(pageName, layout);
newWikiPage.Title ="";
newWikiPage.Update();
web.AllowUnsafeUpdates = false;
A'Kumar -
Creating a Publishing Page with SharePoint Server 2013 Enterprise & SharePoint Designer 2013
How can I create a Publishing Page using my existing Master Page. The purpose of this is that I want to use page layouts within that page. I cannot understand how to do that. I even tried from the SharePoint Designer 2013. Could someone help me to solve
this matter.
Thank You,
Regards,
Chiranthaka.Are you having trouble creating a custom page layout, getting it to appear when creating a Publishing Page, or getting it to use your custom Master Page?
- If you are having trouble creating a page layout take a look at the following article:
http://sharepoint-works.blogspot.com/2013/08/create-custom-page-layouts-in.html#.U0KQYPnxpaE
- If you aren't seeing your page layout when creating a custom page check the settings under Page Layout and Site Templates in the Look and Feel
section of the Site Settings page.
- The master page used by all Publishing Pages is the Site Master Page. You can change which Master page is used in the Master Page link in the Look and Feel section of the Site Settings page.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
How do I make it so my client can edit Links in business catalyst when they create new pages?
Okay so essentially I have built a site in Muse uploaded to business catalyst and I've setup a site template so that the client can create new pages as each new course arrives, but how do I get the link from the homepage to link to the new page? basically I need the link to be editable.
What would be ideal is a kind of portfolio layout where there is a thumbnail and a new page but for my client to be able to add a new project adn it would create a thumbnail on the homepage and a new page that he can edit. Does anyone know of something like that possible in Business catalyst?Hi
Editing with Business Catalyst only works with image or text editing , we cannot add new page or page items using in browser editing.
However, you can manage the site from BC end when your client and login to admin and add pages, modify etc, but if you re-publish the site from Muse then then changes will be overwritten.
Thanks,
Sanjit -
How to create a page & portlet
Hi
I am new to Oracle portal. i am using Oracle 3.0.
i am working on an application in portal. i have created n number of forms, reports, dynamic pages, menus, sub menus & lovs etc. currently i access my application in a raw manner. first login , then go to the navigator link then applications & click on menu.
my menu is a single entry point to my application. how can i publish this. i.e what i want to do is the moment user logs in he should straight away get the menu view.
I have read there is something by which we can create pages & publish them.
Could someone tell me how to create a page where i can drop my components such as menu , forms & reports on to it & then create a complete portal.
I can see a create page in my oracle portal but the moment i try to add a portlet in that page it gives me option for adding an appliction only what i want to add is the componenets(such as menus, forms etc) residing inside my application.
what it gives me is 2 options 1 to edit & the other to navigate the application only, here i can see my components but cannot include them in my page.
Kindly reply
Regards
SushantYou can create a page and add application components to it as portlets. The first step to do this is to go to the application and check the publish as portlet check box. Then go to each component that you want to publish and check the publish as portlet box. Once you do that, you create a page and click add portlet (in edit mode). This will give you the portlet repository. Your application should show up as a provider and each component that you checked will show up as a portlet.
-
Clicking "page from template" does not allow me create new pages
I stared designing a site with the trial version of CS4. Of course it involved a lot of trial and error, creating a page and canceling it again etc. At last I was able to design the index page and a few other pages, but suddenly just about 7 days into the trial period, the template started looking different; not displaying the images and displaying the home page article in an improper way. I also discovered that I could not create new pages by selecting file\new. When the new document dialogue page opens and I select "page from template" and then select a site I am working on, nothing shows in the items list. I only see the message "no items". Moreover, the "create" (new page) button is no more a click-able area.
I even tried it by proceeding as if I wanted to design a new site. I click file\new\page from template\the site, but when it comes to the stage where I should select "2 column liquid, left sidebar, header and footer" after clicking “page from template” I don't see anything in the items column. It only tells me "no item."
I thought this problem was due to the fact that I was using the trial version and that the trial version was limited in the number of new pages I could create. So I bought the full version. Alas! I discovered that changed nothing. Right now am stuck. Do you have any suggestion?I think you're are confusing DW Templates with CSS Page Designs and Starter Pages.
Templates are a DW proprietary device. They permit you to have sitewide elements such as common menus, headers and footers on all your pages along with Editable Regions for page specific content (i.e. the stuff that changes on every page).
DW Templates looks like this (notice the Template Editable Comments):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
</head>
<body>
<!-- TemplateBeginEditable name="Content" -->My Page Specific Content Goes here
<!-- TemplateEndEditable -->
</body>
</html>
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
http://alt-web.blogspot.com -
I go to a sub site in my site collection and
go to Site Actions > New Page > Type in the name of the new page, click 'Create' and I get an error - Access Denied
Tried it through More Options/Page - create a new Publishing Page - same thing
In my permissions, have Design/Contribute/Manage Hierarchy...
What am I missing?i think at this time you have to create a new group.
here is information, how important this group is:
Do not remove all authenticated users from this group. Because Master Page Gallery and Style Library are shared across all sites in the
site collection and must be accessible to all users of all sites. If you remove all authenticated users from the group, anyone with this permission level on a subsite will not be able to render the site. SharePoint will not automatically add or remove users
of subsites to or from this group as needed.
http://technet.microsoft.com/en-us/library/cc262690.aspx#section1
to recreate the group .
a new "All Users" group can be created. When you go to add users, there's a link to include all authentcated
users. Click that link and click OK.
once the group is created...add newly created group into "Master pages and page layouts" and Style
Library( Themes) as reader...
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog -
Unable to Check In Publishing Page
I am running into an issue with a custom page layout that I have created. On this page layout I have a publishing html field, publishing image field, and a publishing summary links field. The problem is when I check-in the publishing page
as a draft the content in the publishing HTML fields does NOT save and redirects me to the root page in that web.
I then checked the SharePoint ULS logs and found the following error.
Time: 09/03/2010 11:47:20:18
Process: w3wp.exe (0x1248)
TID: 0x0C5C
Area: CMS
Category: Publishing Cache
EventID: 98ee
Level: High
Description: Trying to store a checked out item (/EN-US/MEDICALPRODUCTS/PAGES/646.ASPX) in the object cache. This may be because the checked out user is accessing the page, or it could be that the SharePoint system account has the item
checked out. To improve performance, you should set the portalsuperuseraccount property on the web application. See the documentation for more information.
I have tried to find more answers on the web but have been unsuccessful so far. Has anybody seen this error before or got any possible ideas to try? Thanks in advance for any help.
CraigI am getting this same error in SharePoint Server 2013 when creating new publishing pages with a custom Page Layout created using Design Manager. The page uses a custom Content Type isth a required column of "News Type" which I suspect is at the root.
The workaround is to Check In the newly Created page before adding any content, then check it out again. why you cannot check it in after adding any more information than the Name is a mystery.
David McKenzie -
Rich Text Editor functionality for a DIV tag in a publishing page in SharePoint online
Hi,
We are having a requirement where we need RTE behavior of SharePoint 2013 Rich Html Field for a custom DIV. The scenario goes like this:
1. I have a publishing page
2. I dropped the content editor web part and to that content editor web part I will point to an HTML file that needs to be rendered in that content editor web part
3. I have one DIV in the above mentioned HTML files and I want that div to be editable and I need to RTE options for that DIV.
How to accomplish the above behavior?Hi,
According to your post, my understanding is that you wanted to create html rich text editor for a DIV tag in a publishing page in SharePoint online.
You can create your own Rich Text Editor.
Here are some great blogs for your reference:
An Example to Use HTML Rich Text Editor
Example: Using the Editor's instance
Rich Text Editor control in SharePoint 2010
Regarding SharePoint Online, for quick and accurate answers to your questions, it is recommended that you initial a new thread in Office 365 forum.
Office 365 forum
http://community.office365.com/en-us/forums/default.aspx
Best Regards,
Linda Li
Linda Li
TechNet Community Support
Maybe you are looking for
-
I have an i pod touch 5 and I try to download a new app from the app store so i goto the app store and click download then click it again to install it and it installs but it dont leave an app icon on the home page so i go back to the app store and i
-
[solved]Problems with 82801H (ICH8 Family) sound
Hi! I've got some problems with my sound. I read http://bbs.archlinux.org/viewtopic.php?id=50047 (adding options in modprobe.conf) I tried http://wiki.archlinux.org/index.php/ALS - s_and_test and followed http://wiki.archlinux.org/index.php/Len - X30
-
HTC Incredible 4G lte screen going crazy
The screen randomly starts doing all kinds of things by itself. It acts like someone is typing on the keypad for no apparent reason, or starts zooming, going to different pages, changing settings. Sometimes the screen locks up. Sometimes the sliding
-
Is there an option to remove or deactivate the fonts that came with Indesign CC?
Is there an option to remove or deactivate the fonts that came with Indesign CC? I have to scroll through a long list of fonts that I never use wich is quite annoying. I
-
'Photoshop has stopped working' (branched)
I am working with a new system running win 7 pro with all the latest updates. I just purchased CS5.5 Web Premium and installed it. DW and AI are working but I cannot get PS to stay up long enough to do anything at all before I get the "Photoshop ha