Notes for modifying the master page in Moss

Source: Internet
Author: User

Http://www.cnblogs.com/ceci/archive/2008/12/29/1364480.html

In the past two weeks, I have been responsible for modifying the moss default style and master, and the whole process has crashed several times. I have accumulated some tips, record it here.

1. Moss styles can be made with skin. theme is good. You can also directly modify C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ template \ layouts \ 2052 \ styles \ core.css, but this will affect the global, backup one copy, in case you need to restore it, and then make a set. Import this style and the application will be ready. When you change the master node in website settings, appearance, and dashboard page, at the bottom of the page, select "Alternative css url" and choose to import the style you have prepared. Pay attention to the image path.

Ii. Master Modification

This is even more difficult to modify. I just wanted to crash several times. In a word, back up the data. The following is a summary.

1. Make sure to back up all template pages before modification, or back up them in the local directory, that is, the 12 directory. If you use SPD to open the website

For the "_ catalogs \ masterpage" directory, make sure to back up a copy and get a copy. Just in case, after modifying it with SPD

A dark blue icon indicates that the current item is customized. If a problem occurs, right-click the custom item and choose reset to website definition to restore the most

Initial status.

2. Management Center and website settings page "C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12

\ Template \ layouts \ setting. aspx "uses a master, all of which are" C: \ Program Files \ common files \ microsoft shared \ Web

Server Extensions \ 12 \ template \ layouts \ application. Master"

3. The master nodes on all front-end pages are in "C: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12

\ Template \ Global \ default. Master"

4. Adjust the master on the front-end page and use SPD to open the website and expand the "_ catalogs \ masterpage \ default. Master" file. After backup, you can

To modify. This template can be applied as a website template in website settings. However, this is not the template of the website settings page. If you want to modify the template

, Pay attention to the following points. At least I did it.
1) Back up data
2) <% @ register tagprefix = "wssuc" tagname = "topnavbar" src = "SWB/topnavbar. ascx" %>
<% @ Register tagprefix = "wssuc" tagname = "welcome" src = "SWB/welcome. ascx" %>
<% @ Register tagprefix = "wssuc" tagname = "designmodeconsole" src = "SWB/designmodeconsole. ascx" %>
The above three items are used to register user controls in the application. master file, which is the result of my modification.
<% @ Register tagprefix = "wssuc" tagname = "topnavbar" src = "_ controltemplates/topnavbar. ascx" %>
<% @ Register tagprefix = "wssuc" tagname = "welcome" src = "_ controltemplates/welcome. ascx" %>
<% @ Register tagprefix = "wssuc" tagname = "designmodeconsole"

Src = "_ controltemplates/designmodeconsole. ascx" %>
However, after I modified the content, I saved the file and indicated that the file could not be found. I guess these three files could not be found.

In the controltemplates directory, create a folder in the layouts directory, for example, "SWB", and copy the three from controltemplates

Copy SWB, modify Src in application. Master, and save it.

 

 

 

Source: http://www.cnblogs.com/virusswb/archive/2009/04/25/1443461.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.