locked
templates RRS feed

  • Question

  • I would like to test a site analyze tool. It requires to embed a javascript in our site templates.  How can I find out what template and what template page we are using for our website? or Does it mean master page?
    Thanks
    Tuesday, September 15, 2009 6:20 PM

Answers

All replies

  • Take a look in the Site Master Page Settings, at http://server/site/_Layouts/ChangeSiteMasterPage.aspx.  This will show you what master page is in effect.

    The master pages available for a given Site are also stored in http://server/site/_catalogs/masterpage/Forms/AllItems.aspx.
    Eric Legault [MVP - Outlook] MCTS (SharePoint), MCDBA President, Collaborative Innovations "Create -> Collaborate -> Innovate": Custom Solutions for Outlook, Exchange and SharePoint http://www.collaborativeinnovations.ca http://blogs.officezealot.com/legault
    • Marked as answer by msloy Tuesday, September 15, 2009 8:44 PM
    Tuesday, September 15, 2009 7:39 PM
  • Thank you. First of all, I looked for the templates of our website- it is a publishing  site template. I went to the template directory, all I see in the default.aspx in the template direcory is:
    <%@ Page Inherits="Microsoft.SharePoint.Publishing.TemplateRedirectionPage,Microsoft.SharePoint.Publishing,Version=12.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" %> <%@ Reference VirtualPath="~TemplatePageUrl" %> <%@ Reference VirtualPath="~masterurl/custom.master" %>

    So for testing the analyze tool, it asked me to add some javascropt code to the templates our site using, so I guess it should be the master page, is that correct? 

    Secondly, I follow the links you gave above, it's very helpful.
    Tuesday, September 15, 2009 7:59 PM
  • Take a look in the Site Master Page Settings, at http://server/site/_Layouts/ChangeSiteMasterPage.aspx.  This will show you what master page is in effect.

    The master pages available for a given Site are also stored in http://server/site/_catalogs/masterpage/Forms/AllItems.aspx.
    Eric Legault [MVP - Outlook] MCTS (SharePoint), MCDBA President, Collaborative Innovations "Create -> Collaborate -> Innovate": Custom Solutions for Outlook, Exchange and SharePoint http://www.collaborativeinnovations.ca http://blogs.officezealot.com/legault

    You could modify the masterpage with SharePoint Designer.
    Run SharePoint Designer --> open your site
    Browse to _catalogs --> masterpage and open your masterpage, put in your javascript code there.
    Maybe its wise to make a copy first of the masterpage.
    • Marked as answer by msloy Tuesday, September 15, 2009 8:44 PM
    • Unmarked as answer by Mike Walsh FIN Wednesday, September 16, 2009 1:45 PM
    Tuesday, September 15, 2009 7:59 PM
  • Yes, I know how to modify the master page, just want to make sure it's the master page that I need to modify other than some template page.

    Thanks
    Tuesday, September 15, 2009 8:44 PM