SlideShare a Scribd company logo
1 of 6
Lab 10: Create a new WCM Master Page

           Objectives
           After completing this lab, you will be able to:

           •   Give rights to users
           •   Disable the default workflow in the development environment
           •   Use SharePoint Designer for creating, designing, and applying a new Master Page.

           Prerequisites
           Before working on this lab, you must have:
           •   Labs 1 and 2 fully completed

           Scenario
           In this lab, has a web designer, you will create and modify a new Master Page. Once created,
           you will then apply the new Master Page to the desired site section.



           Estimated time to complete this lab: 60 minutes



Exercise 1
Create a test Publishing Site
               For convenience, it would be better to create/modify/test a new Master page on a sub site of
               you development environment rather than to the top level site of your site collection. It will
               be easier to recover from potential problems caused by incorrectly configured or designed
               Master page file.


               ∑ Create a new Publishing site to apply your new customized Master page

               1. For this lab, please login as “brianc” on the “litwareinc” domain on your desktop. Brian
                  belongs to the “site owner” role thus will have the rights to modify the look and feel of
                  the site. First log out from the current user and log back in as “brianc” password =
                  pass@word1.
Lab 10: Create a new WCM Master Page




              Once logged in, you will create a new Publishing site. Note: If this is the first time you
              logged in as Brian you may need to close the “Manage Your Server” panel but first check the
              “Don’t display this page at logon” box at the button left of the panel.

              2. Before creating a new Publishing site (which you will create to test your new Master
                 Page), you will give Brian the rights to approve new sites and pages creation in and under
                 the “Sites” hierarchy. By allowing Brian to approve his own sites and pages you will
                 need to use a lesser amount of clicks to make things work i.e. the need to log in as a
                 different user to approve the page and login in again as Brian to continue further site
                 modification. To give Brian the rights to approve, launch you browser and from the
                 default site home page “http://hol.litwareinc.com/Pages/Default.aspx” click on “Sites”.

              3. Once on the “Site Directory” site, click on “Site Actions”, then “Site settings”, then
                 “People and Groups”.

              4. Once in the ‘People and Groups” page, select “Groups” from the top left navigation

              5. Click the “Approvers” group

              6. Click New, Add Users

              7. In the “Add Users: Sites” page, type “litwareincbrianc” in the Users box and click
                 “Check Names”

              8. Make sure the Approvers [Limited Access, Approve] is set in the Give Permission drop
                 down and click Ok

              9. Now that Brian Cox has the rights to approve on this site structure, click the “Sites” link
                 to return to the location where you will create the new site based on a “Publishing” site
                 template.

              10. On the Site Directory page, click “Create Site”

              11. In the “New SharePoint Site” page, enter “My WCM Site” (WCM = Web Content
                  Management) in the Title field, “MyWCMSite” in the Web Site Address field, click the
                  “Publishing” tab and select “Publishing Site” as the selected Template.

              12. Click Create

              13. Click “Publish”
Lab 10: Create a new WCM Master Page       3



                    The “My WCM Site” site is now approved and published!




Exercise 2
Disable the Default Workflow
            As you have probably realized, by default, a new Publishing Site uses the default Approval
            workflow automatically. To reduce the amount of clicks a developer will need to go through each
            time he or she modifies a site/page you will need to bypass the default Approval workflow from
            your development environment. In this case, to further reduce the number of clicks, you will also
            disable the Versioning and Check in/Check out features.

            ∑ Make sure you are logged as “Brianc”

        1. To disable the workflow, click the “My WCM Site” link in the breadcrumb (this action will
           return you to the home page of the My WCM Site.)

           Note: If the “My WCM Site” site does not appear in the navigation elements (left and top) and
           you need to locate that site, click “Site” and then “Site Map”. The “My WCM Site” should be
           listed under “Sites”.

        2. Click “Site Actions”, select “Site Settings” then “Modify Pages Library Settings”.

        3. Select “Versioning settings”

        4. In the “Document Library Versioning Settings: Pages” page, select “No” for the “Required
           content approval for submitted items” if not already selected, select “No versioning” in the
           “Document Version History” section, and lastly, select “No” for the “Required documents to
           be checked out before they can be edited?” in the “Required Check Out” section.

        5. Click Ok

        6. Return to the “My WCM Site” home page by clicking the “My WCM Site” link in the
           breadcrumb.



Exercise 3
Create and Edit a new master page in SharePoint Designer
            Due to the fact that many page layouts can be use with a single Master page, you will need to
            understand the design of each of the page layouts utilized with that Master page. In this exercise
            you will create and modify a new simple Master page that could be used with page layouts. To
            help understand the design of page layouts and their association with a specific Master page, we
            will reverse engineer this site. First, we need to determine which “page layout” the home page of
            the “My WCM Site” is based on and then, determine what are the “contentplaceholders” utilized
            by that page layout. Each one of the contentplaceholders will also be referred to be in the Master
            page. All page layouts contentplaceholders must be in the Master page but not all Master page
            contentplaceholders needs to be in page layouts!
Lab 10: Create a new WCM Master Page



          ∑ ContentPlaceholders are common to both Page Layouts and Master pages –
              see the SDK for further information

         1. To determine the Page Layout the “My WCM Site” home page uses, first navigate to the
            “My WCM Site” home page if not already there, then click on “Site Actions”, then “Edit
            Page”. On the editing console of the resulted page, click “Page”, then “Page Settings”, click
            Ok to the warning panel and take note of the “Page Layout setting” – the default Page
            Layout should be “(Welcome Page) Welcome page with summary links”.

              Note: The “(Welcome Page)” part of the “(Welcome Page) Welcome page with summary
              links” page layout name indicates the “Associated Content Type” of that page layout. The
              “Welcome page with summary links” indicates the “Title” of the page layout.

         2. Click Cancel

         3. Our next step will be to determine the “content placeholders” used by the default Page
            Layout. To determine the “content placeholders” used by the default Page Layout, click on
            “Site Actions”, then ”Site Settings”, and then “Modify All Site Settings”.

         4. Click “Cancel” to the message box

         5. In the “Site Settings” page, under the “Galleries” section, click “Master Page and Page
            Layouts”

         6. In the “Master Page Gallery”, locate the title “Welcome page with summary links” page
            layout which is the “WelcomeLinks.aspx” page (you can modify the view to show the Title).
            The best way to make sure you have the actual correct page layout would be to check the
            “Site Content and Structure” (accessible via the Site Actions menu) for that page and
            display its “Related Resources”.

         7. In the down arrow menu of the “WelcomeLinks.aspx” page, select “Edit in Microsoft
            Office SharePoint Designer”.


         8. Click Ok to the message box – SharePoint Designer should launch and open the Page Layout.

         9. If this is the first time SharePoint Designer is launched, click Yes to the “set the SharePoint
            Designer as the default Page editor”, then uncheck all boxes in the Privacy Option page and
            click Ok – this may take a couple of minutes to fully load the page.

              Note: In the eventuality that the SharePoint Designer does not launch once you selected the
              “Edit in Microsoft Office SharePoint Designer” link, you could llaunch the SharePoint
              Designer from the Start menu, and then open the following site http://hol.litwareinc.com.
              Once opened, expand the “_catalogs” folder first and then the “masterpage (Master Page
              Gallery)” folder and scroll down and click on “WelcomeLinks.aspx”. To open the page,
              right click and select “open”. If you took this route, jump to step 11 below.

         10. Select “Code View” located at the lower section of the middle pane.

         11. In the Code page, take note of all ContentPlaceholders referred by their ID. There should be
             four of them:
                           ♦ PlaceHolderAdditionalPageHead
                           ♦ PlaceHolderPageTitle
Lab 10: Create a new WCM Master Page      5


                 ♦ PlaceHolderPageTitleInTitleArea
                 ♦ PlaceHolderMain

12. Close SharePoint Designer and then “Discard Check Out” for that Page Layout in the
    “Master Page Gallery”.

Now that we have the necessary information for our Master page… let create and modify a new
Master page.

13. To create a new Mater page for the “My WCM Site” site, return to the “My WCM Site” site
    by clicking Site, Site Map, and then “My WCM Site” link from the “Sites” list.

14. Copy the link of the site i.e. http://hol.litwareinc.com/SiteDirectory/MyWCMSite/ . This will
    save you the need to browse to this site within SharePoint Designer.

15. Launch SharePoint Designer from the Start menu and point it to your “Publishing” site i.e.
    http://hol.litwareinc.com/SiteDirectory/MyWCMSite. Use the Open Site option and enter the
    URL of your site in the Site name field.

16. In the SharePoint Designer folder list view, expand “_catalogs” and “masterpage (Master
    Page Gallery)”

17. Make a copy of the “default.master” page within the same folder




18. Check out the “default_copy(1).master” and rename it with your <initials>default.master

19. Double click on your new renamed master page to open it up.

20. In the next few steps, you will now modify this newly created Master page by coping and
    pasting from an already configured sample Master page. To paste the necessary code from
    the preconfigured Master page, browse to the “CustomWCMDefaultMasterPage.txt”
    located in the “C:HOLMasterPage” folder with Windows Explorer.
Lab 10: Create a new WCM Master Page



         21. Open “CustomWCMDefaultMasterPage.txt” and copy all of its code.

         22. Return to SharePoint Designer, select the Code view and select all existing code of copied
             new Master page and paste. This will replace all existing code with the code of the
             “CustomWCMDefaultMasterPage.txt” file.

         23. Save your changes

         On save, you will be prompted by the following message, click on Yes




          Important Note: The customization referred by this message is also known as to be
          “unghosted”. When site pages are customized, excluding browser-based customizations such as
          modifications to Web Parts, the pages become “unghosted” and their contents are stored in the
          database. Uploaded .aspx files are considered unghosted automatically. The contents of
          unghosted pages are routed through safe mode parsing in ASP.NET, which prevents server-side
          code from executing, and which depends entirely on the Safe Controls list specified in the
          web.config file of the wwwroot directory to determine which controls can be rendered at run
          time.
         24. Click Yes to the following message

         25. To apply this newly created Master page to this site, right click on the new Master page in the
             “Folder List” view (left side of the SharePoint Designer) and select “Set as Custom Master
             Page”. This setting will tell the system to use this Master page for this site from now on.

         26. To verify the functionality and its application to the “My WCM Site” site, return to your
             browser and refresh the page.

         27. If there are no errors, return to SharePoint Designer and Check Out the new Master page.

         28. To have the site return to it original Master page, simple right click on the original
             “default.master” master page and select “Set as Custom Master Page”.

         29. Refresh your browser session and all should be back to its original state.

         30. Close SharePoint Designer.

         Lab Completed!

More Related Content

More from LiquidHub

Fast search for share point
Fast search for share pointFast search for share point
Fast search for share pointLiquidHub
 
Simple Farm Server Deployment
Simple Farm Server DeploymentSimple Farm Server Deployment
Simple Farm Server DeploymentLiquidHub
 
Pre Install Databases
Pre Install DatabasesPre Install Databases
Pre Install DatabasesLiquidHub
 
Moss 2007 Deployment Detail
Moss 2007 Deployment DetailMoss 2007 Deployment Detail
Moss 2007 Deployment DetailLiquidHub
 
Moss 2007 Backup Strategies
Moss 2007 Backup StrategiesMoss 2007 Backup Strategies
Moss 2007 Backup StrategiesLiquidHub
 
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003LiquidHub
 
5060 A 01 Demonstration Steps
5060 A 01 Demonstration Steps5060 A 01 Demonstration Steps
5060 A 01 Demonstration StepsLiquidHub
 
Working With Infopath 2007
Working With Infopath 2007Working With Infopath 2007
Working With Infopath 2007LiquidHub
 
Whats New In Microsoft Windows Share Point Services Feature Walkthrough
Whats New In Microsoft Windows Share Point Services Feature WalkthroughWhats New In Microsoft Windows Share Point Services Feature Walkthrough
Whats New In Microsoft Windows Share Point Services Feature WalkthroughLiquidHub
 
Overviewofthe2007 Microsoft Office System Components Refresh
Overviewofthe2007 Microsoft Office System Components RefreshOverviewofthe2007 Microsoft Office System Components Refresh
Overviewofthe2007 Microsoft Office System Components RefreshLiquidHub
 
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
Organizingand Finding Resourceswith Office Share Point Server2007 RefreshOrganizingand Finding Resourceswith Office Share Point Server2007 Refresh
Organizingand Finding Resourceswith Office Share Point Server2007 RefreshLiquidHub
 
Organizingand Finding Resourceswith Office Share Point Server2007
Organizingand Finding Resourceswith Office Share Point Server2007Organizingand Finding Resourceswith Office Share Point Server2007
Organizingand Finding Resourceswith Office Share Point Server2007LiquidHub
 
Office Share Point Server2007 Functionaland Architectural Overview
Office Share Point Server2007 Functionaland Architectural OverviewOffice Share Point Server2007 Functionaland Architectural Overview
Office Share Point Server2007 Functionaland Architectural OverviewLiquidHub
 
Office2007 Overview Express
Office2007 Overview ExpressOffice2007 Overview Express
Office2007 Overview ExpressLiquidHub
 
Moss2007 Installation Configuration
Moss2007 Installation ConfigurationMoss2007 Installation Configuration
Moss2007 Installation ConfigurationLiquidHub
 
Moss2007 Enterprise Features Administration
Moss2007 Enterprise Features AdministrationMoss2007 Enterprise Features Administration
Moss2007 Enterprise Features AdministrationLiquidHub
 
Microsoft Windows Share Point Services Installation Configuration
Microsoft Windows Share Point Services Installation ConfigurationMicrosoft Windows Share Point Services Installation Configuration
Microsoft Windows Share Point Services Installation ConfigurationLiquidHub
 

More from LiquidHub (20)

Fast search for share point
Fast search for share pointFast search for share point
Fast search for share point
 
Simple Farm Server Deployment
Simple Farm Server DeploymentSimple Farm Server Deployment
Simple Farm Server Deployment
 
Pre Install Databases
Pre Install DatabasesPre Install Databases
Pre Install Databases
 
Moss 2007 Deployment Detail
Moss 2007 Deployment DetailMoss 2007 Deployment Detail
Moss 2007 Deployment Detail
 
Moss 2007 Backup Strategies
Moss 2007 Backup StrategiesMoss 2007 Backup Strategies
Moss 2007 Backup Strategies
 
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
How To Configure Email Enabled Lists In Moss2007 Rtm Using Exchange 2003
 
Bdc Screens
Bdc ScreensBdc Screens
Bdc Screens
 
Bdc Screens
Bdc ScreensBdc Screens
Bdc Screens
 
5060 A 01 Demonstration Steps
5060 A 01 Demonstration Steps5060 A 01 Demonstration Steps
5060 A 01 Demonstration Steps
 
5060 A 01
5060 A 015060 A 01
5060 A 01
 
Working With Infopath 2007
Working With Infopath 2007Working With Infopath 2007
Working With Infopath 2007
 
Whats New In Microsoft Windows Share Point Services Feature Walkthrough
Whats New In Microsoft Windows Share Point Services Feature WalkthroughWhats New In Microsoft Windows Share Point Services Feature Walkthrough
Whats New In Microsoft Windows Share Point Services Feature Walkthrough
 
Overviewofthe2007 Microsoft Office System Components Refresh
Overviewofthe2007 Microsoft Office System Components RefreshOverviewofthe2007 Microsoft Office System Components Refresh
Overviewofthe2007 Microsoft Office System Components Refresh
 
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
Organizingand Finding Resourceswith Office Share Point Server2007 RefreshOrganizingand Finding Resourceswith Office Share Point Server2007 Refresh
Organizingand Finding Resourceswith Office Share Point Server2007 Refresh
 
Organizingand Finding Resourceswith Office Share Point Server2007
Organizingand Finding Resourceswith Office Share Point Server2007Organizingand Finding Resourceswith Office Share Point Server2007
Organizingand Finding Resourceswith Office Share Point Server2007
 
Office Share Point Server2007 Functionaland Architectural Overview
Office Share Point Server2007 Functionaland Architectural OverviewOffice Share Point Server2007 Functionaland Architectural Overview
Office Share Point Server2007 Functionaland Architectural Overview
 
Office2007 Overview Express
Office2007 Overview ExpressOffice2007 Overview Express
Office2007 Overview Express
 
Moss2007 Installation Configuration
Moss2007 Installation ConfigurationMoss2007 Installation Configuration
Moss2007 Installation Configuration
 
Moss2007 Enterprise Features Administration
Moss2007 Enterprise Features AdministrationMoss2007 Enterprise Features Administration
Moss2007 Enterprise Features Administration
 
Microsoft Windows Share Point Services Installation Configuration
Microsoft Windows Share Point Services Installation ConfigurationMicrosoft Windows Share Point Services Installation Configuration
Microsoft Windows Share Point Services Installation Configuration
 

Recently uploaded

AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 

Recently uploaded (20)

AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

( 10 ) Office 2007 Create A New Wcm Master Page

  • 1. Lab 10: Create a new WCM Master Page Objectives After completing this lab, you will be able to: • Give rights to users • Disable the default workflow in the development environment • Use SharePoint Designer for creating, designing, and applying a new Master Page. Prerequisites Before working on this lab, you must have: • Labs 1 and 2 fully completed Scenario In this lab, has a web designer, you will create and modify a new Master Page. Once created, you will then apply the new Master Page to the desired site section. Estimated time to complete this lab: 60 minutes Exercise 1 Create a test Publishing Site For convenience, it would be better to create/modify/test a new Master page on a sub site of you development environment rather than to the top level site of your site collection. It will be easier to recover from potential problems caused by incorrectly configured or designed Master page file. ∑ Create a new Publishing site to apply your new customized Master page 1. For this lab, please login as “brianc” on the “litwareinc” domain on your desktop. Brian belongs to the “site owner” role thus will have the rights to modify the look and feel of the site. First log out from the current user and log back in as “brianc” password = pass@word1.
  • 2. Lab 10: Create a new WCM Master Page Once logged in, you will create a new Publishing site. Note: If this is the first time you logged in as Brian you may need to close the “Manage Your Server” panel but first check the “Don’t display this page at logon” box at the button left of the panel. 2. Before creating a new Publishing site (which you will create to test your new Master Page), you will give Brian the rights to approve new sites and pages creation in and under the “Sites” hierarchy. By allowing Brian to approve his own sites and pages you will need to use a lesser amount of clicks to make things work i.e. the need to log in as a different user to approve the page and login in again as Brian to continue further site modification. To give Brian the rights to approve, launch you browser and from the default site home page “http://hol.litwareinc.com/Pages/Default.aspx” click on “Sites”. 3. Once on the “Site Directory” site, click on “Site Actions”, then “Site settings”, then “People and Groups”. 4. Once in the ‘People and Groups” page, select “Groups” from the top left navigation 5. Click the “Approvers” group 6. Click New, Add Users 7. In the “Add Users: Sites” page, type “litwareincbrianc” in the Users box and click “Check Names” 8. Make sure the Approvers [Limited Access, Approve] is set in the Give Permission drop down and click Ok 9. Now that Brian Cox has the rights to approve on this site structure, click the “Sites” link to return to the location where you will create the new site based on a “Publishing” site template. 10. On the Site Directory page, click “Create Site” 11. In the “New SharePoint Site” page, enter “My WCM Site” (WCM = Web Content Management) in the Title field, “MyWCMSite” in the Web Site Address field, click the “Publishing” tab and select “Publishing Site” as the selected Template. 12. Click Create 13. Click “Publish”
  • 3. Lab 10: Create a new WCM Master Page 3 The “My WCM Site” site is now approved and published! Exercise 2 Disable the Default Workflow As you have probably realized, by default, a new Publishing Site uses the default Approval workflow automatically. To reduce the amount of clicks a developer will need to go through each time he or she modifies a site/page you will need to bypass the default Approval workflow from your development environment. In this case, to further reduce the number of clicks, you will also disable the Versioning and Check in/Check out features. ∑ Make sure you are logged as “Brianc” 1. To disable the workflow, click the “My WCM Site” link in the breadcrumb (this action will return you to the home page of the My WCM Site.) Note: If the “My WCM Site” site does not appear in the navigation elements (left and top) and you need to locate that site, click “Site” and then “Site Map”. The “My WCM Site” should be listed under “Sites”. 2. Click “Site Actions”, select “Site Settings” then “Modify Pages Library Settings”. 3. Select “Versioning settings” 4. In the “Document Library Versioning Settings: Pages” page, select “No” for the “Required content approval for submitted items” if not already selected, select “No versioning” in the “Document Version History” section, and lastly, select “No” for the “Required documents to be checked out before they can be edited?” in the “Required Check Out” section. 5. Click Ok 6. Return to the “My WCM Site” home page by clicking the “My WCM Site” link in the breadcrumb. Exercise 3 Create and Edit a new master page in SharePoint Designer Due to the fact that many page layouts can be use with a single Master page, you will need to understand the design of each of the page layouts utilized with that Master page. In this exercise you will create and modify a new simple Master page that could be used with page layouts. To help understand the design of page layouts and their association with a specific Master page, we will reverse engineer this site. First, we need to determine which “page layout” the home page of the “My WCM Site” is based on and then, determine what are the “contentplaceholders” utilized by that page layout. Each one of the contentplaceholders will also be referred to be in the Master page. All page layouts contentplaceholders must be in the Master page but not all Master page contentplaceholders needs to be in page layouts!
  • 4. Lab 10: Create a new WCM Master Page ∑ ContentPlaceholders are common to both Page Layouts and Master pages – see the SDK for further information 1. To determine the Page Layout the “My WCM Site” home page uses, first navigate to the “My WCM Site” home page if not already there, then click on “Site Actions”, then “Edit Page”. On the editing console of the resulted page, click “Page”, then “Page Settings”, click Ok to the warning panel and take note of the “Page Layout setting” – the default Page Layout should be “(Welcome Page) Welcome page with summary links”. Note: The “(Welcome Page)” part of the “(Welcome Page) Welcome page with summary links” page layout name indicates the “Associated Content Type” of that page layout. The “Welcome page with summary links” indicates the “Title” of the page layout. 2. Click Cancel 3. Our next step will be to determine the “content placeholders” used by the default Page Layout. To determine the “content placeholders” used by the default Page Layout, click on “Site Actions”, then ”Site Settings”, and then “Modify All Site Settings”. 4. Click “Cancel” to the message box 5. In the “Site Settings” page, under the “Galleries” section, click “Master Page and Page Layouts” 6. In the “Master Page Gallery”, locate the title “Welcome page with summary links” page layout which is the “WelcomeLinks.aspx” page (you can modify the view to show the Title). The best way to make sure you have the actual correct page layout would be to check the “Site Content and Structure” (accessible via the Site Actions menu) for that page and display its “Related Resources”. 7. In the down arrow menu of the “WelcomeLinks.aspx” page, select “Edit in Microsoft Office SharePoint Designer”. 8. Click Ok to the message box – SharePoint Designer should launch and open the Page Layout. 9. If this is the first time SharePoint Designer is launched, click Yes to the “set the SharePoint Designer as the default Page editor”, then uncheck all boxes in the Privacy Option page and click Ok – this may take a couple of minutes to fully load the page. Note: In the eventuality that the SharePoint Designer does not launch once you selected the “Edit in Microsoft Office SharePoint Designer” link, you could llaunch the SharePoint Designer from the Start menu, and then open the following site http://hol.litwareinc.com. Once opened, expand the “_catalogs” folder first and then the “masterpage (Master Page Gallery)” folder and scroll down and click on “WelcomeLinks.aspx”. To open the page, right click and select “open”. If you took this route, jump to step 11 below. 10. Select “Code View” located at the lower section of the middle pane. 11. In the Code page, take note of all ContentPlaceholders referred by their ID. There should be four of them: ♦ PlaceHolderAdditionalPageHead ♦ PlaceHolderPageTitle
  • 5. Lab 10: Create a new WCM Master Page 5 ♦ PlaceHolderPageTitleInTitleArea ♦ PlaceHolderMain 12. Close SharePoint Designer and then “Discard Check Out” for that Page Layout in the “Master Page Gallery”. Now that we have the necessary information for our Master page… let create and modify a new Master page. 13. To create a new Mater page for the “My WCM Site” site, return to the “My WCM Site” site by clicking Site, Site Map, and then “My WCM Site” link from the “Sites” list. 14. Copy the link of the site i.e. http://hol.litwareinc.com/SiteDirectory/MyWCMSite/ . This will save you the need to browse to this site within SharePoint Designer. 15. Launch SharePoint Designer from the Start menu and point it to your “Publishing” site i.e. http://hol.litwareinc.com/SiteDirectory/MyWCMSite. Use the Open Site option and enter the URL of your site in the Site name field. 16. In the SharePoint Designer folder list view, expand “_catalogs” and “masterpage (Master Page Gallery)” 17. Make a copy of the “default.master” page within the same folder 18. Check out the “default_copy(1).master” and rename it with your <initials>default.master 19. Double click on your new renamed master page to open it up. 20. In the next few steps, you will now modify this newly created Master page by coping and pasting from an already configured sample Master page. To paste the necessary code from the preconfigured Master page, browse to the “CustomWCMDefaultMasterPage.txt” located in the “C:HOLMasterPage” folder with Windows Explorer.
  • 6. Lab 10: Create a new WCM Master Page 21. Open “CustomWCMDefaultMasterPage.txt” and copy all of its code. 22. Return to SharePoint Designer, select the Code view and select all existing code of copied new Master page and paste. This will replace all existing code with the code of the “CustomWCMDefaultMasterPage.txt” file. 23. Save your changes On save, you will be prompted by the following message, click on Yes Important Note: The customization referred by this message is also known as to be “unghosted”. When site pages are customized, excluding browser-based customizations such as modifications to Web Parts, the pages become “unghosted” and their contents are stored in the database. Uploaded .aspx files are considered unghosted automatically. The contents of unghosted pages are routed through safe mode parsing in ASP.NET, which prevents server-side code from executing, and which depends entirely on the Safe Controls list specified in the web.config file of the wwwroot directory to determine which controls can be rendered at run time. 24. Click Yes to the following message 25. To apply this newly created Master page to this site, right click on the new Master page in the “Folder List” view (left side of the SharePoint Designer) and select “Set as Custom Master Page”. This setting will tell the system to use this Master page for this site from now on. 26. To verify the functionality and its application to the “My WCM Site” site, return to your browser and refresh the page. 27. If there are no errors, return to SharePoint Designer and Check Out the new Master page. 28. To have the site return to it original Master page, simple right click on the original “default.master” master page and select “Set as Custom Master Page”. 29. Refresh your browser session and all should be back to its original state. 30. Close SharePoint Designer. Lab Completed!