Skip to main content

Knowledge Base

Go Search
Home > Support > Knowledge Base > Pages > 9985.aspx  

Add master pages and page layouts to a SharePoint site 
Category: How-to 
Applies to: Kivati Studio 

This article contains information about how to add master pages and page layouts to a SharePoint site.

Details

Master Pages and Page Layouts are a popular way to change the visual appearance of your SharePoint site.  It's easy to add them to SharePoint using Kivati.  Because Master Pages and Page Layouts are document library files, you can use the document library file and list item tasks to add and manage them.

To add a master page or page layout:

  1. Add an Open Master Page Gallery task to your project.  You can find this task under the Galleries category in the WSS task library.
  2. On the task added in step 1, chain the WebReference property with the root web on your portal.  You may need to add a new Open Site task to do this.
  3. Add an Add File task to your project.  Chain its List property to the task created in step 1 and set a dependency.
  4. Double click the Add File task and:
    1. Set the FileUrl property to "mymasterpage.aspx" or similar.
    2. Set the StreamLocation property to a resource in your project.  You can click the small ... button to manage and add project resources.
  5. Add a Set List Item Data (Single Field) task to your project.  Chain its ListItem property to the ListItem property of the task created in step 3.
  6. Double click the Set List Item Data (Single Field) task and:
    1. Set the Field property to "Content Type".
    2. Set the Value property to either "Master Page" or "Page Layout", depending on what type of resource you are adding.
  7. Add a Force Approve File task to your project.  Chain its File property to the File property of the task created in step 3, and set a dependency on the task created in step 5.
  8. Build and execute your project.

More Information

Depending on your needs, you may wish to create an aggregate to perform this function for you.  See the Kivati documentation for more information on creating aggregates.

Last update: 5/1/2008 
Copyright 2000-2008 Kivati Software, LLC.
Home| Support| Terms of Use| Privacy| Legal