SharePoint -new page layout is not showing in Ribbon- Page Layout - sharepoint

I am working on SharePoint 2013 online. I have multiple site under a site collection. I have created new Page Layout using Design Manager in SharePoint ....i.e. SharePoint settings--> Design Manager--> Edit Page Layout --> Create New Page Layout... output of this action created html and aspx file. I have check in, publish it and finally approve it. now when i go to site under site collection, i want to change the page layout of a page so i went settings --> edit page--> Ribbon --> page layout but i cannot see my newly created page layout in the list... please help me out?? what I am missing .
Many Thanks

I go to "Page layouts and site templates" page under Site Settings for site in which I want to use this page layout, over there I added my newly created custom page layout to show in Ribbon--> page layout list

Related

How to edit content of aspx SharePoint page programmatically?

There are so many page layouts with same content inside. I need to remove some of the content from these pages through c#.
For example page layouts contain:
<%# Register tagprefix="xyz" namespace="abcd" assembly =abcd, version= 16.0.0.0, publickeytoken =713567888>
I need to remove this content from all the page layouts. Manually editing each and every page layout is very difficult. As I am not a techie , could you please help me here?
I think you are trying to edit the Master Pages of the SharePoint sites. You can view the Master Page from
http://Sharepoint_Site_Name/_layouts/15/DesignMasterPages.aspx
You can also view them from the SharePoint Designer by opening a site and opening the "Master Pages" menu from the left hand side.

SharePoint 2013 Page Layout Error

I'm really finding it difficult to set up a new theme for my SharePoint 2013 site.
I have uploaded all other files to the design gallery. But when I uploaded the page layouts, and I try to change the Content Type to Page Layout, I get the error below:
Sorry, something went wrong List does not exist.
The page you selected contains a list that does not exist. It may have been deleted by another user.
Technical Details
Correlation ID: ce2b429d-0147-d0c2-bc23-32b039f7d8a6
Please what can I do to resolve this?
Thanks.
I got it working by disabling the publishing feature under > site settings > Site Collections Feature > SharePoint Server Standard Site Collection features
Deactivate
Reactivate
Rebooted the server (probably could have done an IISReset but
overkill!)
Now I can add layout pages under master pages gallery.
In the browser, go to your site, and on the Site Actions menu, click
View All Site Content, and then click the Pages document library.
Or you can browse directly to
http://your_site/pages/forms/allitems.aspx, where your_site is the URL
for your site, such as fabrikamweb/finance for the
http://fabrikamweb/finance subsite.
The Pages document library is created automatically by the publishing
feature and contains all of the pages in a site that are created from
page layouts. You can look in the Page Layout column to see which page
layout was used for a specific page and then click the link to view
that page in the browser.
https://support.office.com/en-us/article/Customize-a-publishing-page-layout-c10bda25-0145-44c6-ba14-7757176fb47f

Create Template Page in Sharepoint 2013

I am unable to create template page in sharepoint 2013.
Is there a way to do so ?
Thank You !
To create a page layout:
Browse to your publishing site.
In the upper-right corner of the page, choose the gear icon, and then choose Design Manager.
In Design Manager, in the left navigation pane, choose Edit Page Layouts.
Choose Create a page layout.
In the Create a Page Layout dialog box, enter a name for your page layout.
Select a master page.
The master page that you choose here will be shown in the preview for this page layout. This master page also determines what content placeholders get added to the page layout.
Note
After you choose this master page, you cannot preview the page layout with a different master page, even after you apply a different master page to the live site.
Select a content type. The content type for this page layout determines what page fields will be available for this page layout in the Snippet Gallery.
Choose OK.
At this point, SharePoint creates an HTML file and an .aspx file with the same name. In Design Manager, your HTML file now appears with a Status column that shows one of two possible statuses:
Warnings and Errors
Conversion successful
Click the link in the Status column to preview the file and to view any errors or warnings about the master page.
The preview page is a live server-side preview of your page layout. The top of the preview displays any warnings or errors that you may have to resolve by editing the HTML file in an HTML editor. Errors must be fixed before the preview will display the page layout correctly.
The preview page also contains a Snippets link in the upper-right corner. This link opens the Snippet Gallery, where you can begin replacing mockup controls in your design with dynamic SharePoint controls.
To fix any errors, edit the HTML file that resides directly on the server by using an HTML editor to open and edit the HTML file in the mapped drive. Each time you save the HTML file, any changes are synced to the associated .aspx file.
The preview of the page layout shows the page fields that were added automatically to the page layout. These page fields are site columns that are unique to the current content type. Now you are ready to style the page layout according to your original HTML mockups.
Source

why I don't see my page layout in all page layouts when editing a page online (office 365)

I have created a page layout from Site Setting -> Design Manager -> Edit Page Layout -> Create New Page Layout
Its conversion was successful but I can't find an option to do the followings:
Add a new page with this new page layout
Change the page layout of an existing page to this newly created page layout
If you have Publishing infrastructure activated, you must to checkout/checkin/publish in order to the master/layout begin selectable at page creation.
You can accomplish that both, using SharePoint Designer or Site->settings->master page and layouts.

SP2013 - Adding a Content Editor web part to a custom layout page

In sharepoint 2013, I have 2 custom layout pages:
1 associated with Content Type = Article Page, and
1 associated with Content Type = Welcome Page.
I add a Web Part zone to both layout pages.
I create a web page from either layout page.
When I edit the web page to fill in the Web Part zone, no Web Part zone appears and this appears in its place: $Resources:core,ContentEditorWebPartTitle;
Any clues?
Thanks.
I'm adding the steps of my process hoping that may make things clearer:
access desired site.
went to Design Manager
clicked "Edit Page Layouts"
clicked desired custom page layout
clicked "Snippets"
clicked "Web Parts / Media and Content"
clicked "Content Editor"
clicked "Copy to Clipboard"
then
opened custom page layout (.html) in Sharepoint Designer 2013
copied the clipbboard contents within the "asp:ContentPlaceHolder" tags
saved
then
returned to browser
went back to "Design Manager"
and "Publish a Major Version" of the custom layout page
then
clicked "Add a Page"
goto "Page" tab
click "Page Layout"
select my custom layout page
then scroll to examine my new page (while in "Edit" mode)
result
I see the text "$Resources:core,ContentEditorWebPartTitle;",
but no box for adding content.
Thanks
Im new to Sharepoint myself, but this sounds like your snippet might be wrong. If you can access the snippet manager, how to do this is on MSDN SharePoint 2013 Design Manager snippets.
Then what you want to do is create the snippet using the snippet manager, try the Content Editor inside the Media and Content section, you can then add this to your MasterPage inside the MainContent user control.
You could try adding this snippet to your PageLayout.html instead of MasterPage.html in place of the current web part thats failing, to see if that works.
Remove the web part zones from your layout pages.
Open the layout page in design manager and navigate to snippet manager.
Copy the snippet for web part zone and place them in the layout as desired.
Publish the layout.
Hope this will help to resolve your issue
Your problem is on Step#10 you should put your code inside the following tag:
asp:ContentPlaceHolder ID="PlaceHolderMain" runat="server"

Resources