Showing posts with label Design Manager. Show all posts
Showing posts with label Design Manager. Show all posts

Monday, February 25, 2013

Creating a Custom Page Layout in SharePoint 2013

To Create a Custom Page Layout in SharePoint 2013 do the following steps:

  1. Create Content Type:
    1. From Site Settings select Site Content types
    2. Press button Create to create Content Type 
      Select parent content type from: Publishing Content Types
      Parent Content Type: Page  Layout
    3. Add the following fields to the content type:
      • LargeHeadline – Single line of text
      • RightHandBlurb – Multiple lines of text
      • LeftLinkList – Full HTML
      • LeftColumnTitle – Single line of text
      • LeftColumnText – Full HTML
      • RightColumnText – Full HTML
  2. Creating a Page Layout:
    1. Go to the Design Manager
    2. Edit Page Layouts
    3. Create a page layout
  3. Publishing Your Page Layout
    To publish your page layout, go to Site Settings –> Master pages and page layouts. 
    To publish your layout, click on the HTML file and then Publish this will reflect also in aspx:




  4. Creating a Page:





  5. Now we can publish our page.
  6. Customizing Page Layouts. There are two ways to grab the file: 
    1. Go to Design Manager –>3. Upload Design Files and map a network drive to your master page directory.
    2. Go to Site Settings –> Master pages and page layouts and you can download your file.
    3. Moving the snippets provided by SharePoint 2013 into the appropriate spots,  to customize layout page.

Sunday, February 24, 2013

Creating a Custom Master Page in SharePoint 2013

 To Create a custom master page in SharePoint 2013:
  1. Design your master page as html with structure folder:
  2. Go to The Design Manage
  3. Mapping to the Master Page Directory by Edit Master Pages:

  4. Click on that link and you will see this dialogue box:
  5. If you use  Windows Server 2012  you need to install feature “Desktop Experience” for next steps.

  6. You need to select the folder containing Master Page and Page Layouts as well as their dependent assets (CSS files, scripts, images, etc.). To do this:

    • Go to Windows Explorer, right click on your computer and select Map Network Drive. 

    • Connect to network drive
    • Select url to map to folder
       
    • Now we can simply copy our template and dependent files into this folder
  7. Now you can select your html master page and click insert.
    NOTE: SharePoint 2013 expects your HTML to be XML Compliant. If you have older or non-compliant HTML you will get an error. Fix your file and try again.
  8. Press Conversion and successful link to see preview of this page.

  9.  At the bottom of the page you will see a Yellow Box that represents the place holder where dynamic content is going to be inserted. We're going to now move that place holder into where we want it to replace our dummy text in the middle of the page.
  10. Download the HTML file from the Share Point 2013 environment and open it in your HTML editor and you will see that Share Point 2013 has decorated your HTML with a number of tags.  These tags are used by Share Point 2013 as markup to specify where to put to insert content when it generates the Master Page. 
  11. Publish HTML file it will reflect automatically in master file.