Saturday, May 8, 2010

How to add a copyright notice to bottom of pages

You can add a copyright notice or other text to the bottom of all pages by modifying the Default.Master, MWSdefault.master, and any other custom master pages or publishing masters you have.

To modify the default.master and MWSdefault.master go to your front end web server c:\Program Files\Common files\Microsoft Shared\Web Server Extensions\12\Template\Global\  and open default.master using NOTEPAD. Then scroll down to the very bottom and right above the closing </BODY> modify your statement below and paste it above that line.

Paste

<table style="width: 100%" align="center">
<tr>
     <td colspan="2" class="style1">Company, Inc.&nbsp; |&nbsp;
     <a href="Company, Inc.";</a> |&nbsp; <a href="CompanyExtranet;</a> |&nbsp;<a target="_blank" href="Other URLs">Other URLs;</a> |&nbsp;&nbsp; ©2006-2010 Company, Inc.. All rights reserved. </td>

</tr>
</table>

Then the </BODY> and </HTML> closing tags would be the last two lines.

To add your own style as referenced above then edit and paste the style information below to the top of the master page right before (above) the opening <HTML> tag.  Otherwise you can reference an existing style class from one of the default css files instead.

<style type="text/css">
.style1 {
font-family: Verdana;
color: #000000;
text-align: center;
font-size: 8pt;

</style>

Making this change the exact way listed above does not un-ghost or customize those pages. Typically by default opening them in SPD or similar tools such as Visual Studio will.

Now remember if you modify the default.master and MWSdefault.master then you will need to copy these files over before any upgrades like Services Packs or Infrastructure Update patches just incase Microsoft overwrites them. Or you can copy them and create your own custom master file which is what I do...however, for simple modifications like this I do choose to modify the built in ones and just make the modifications to the defaults again if they get overwritten.

No comments:

Post a Comment