Today I’ll talk about master pages and branding fundamentals into SharePoint :)
Every WSS 3.0 site is provisioned with a special Master Page gallery which contains a master page template known as default.master. This file is deployed in the 12-hive under 12\TEMPLATE\GLOBAL. Each new WSS site provides an instance of default.master. It is possible to customize default.master, but if you do, it becomes unghosted and this can affect efficiently and scalability.
The default.master page contains controls (including links, menus, icons and navigation components), named placeholders, and delegate controls. Named placeholders are used to add unique contents to a page template of page instance that is linked to a master page. Delegate Controls provide a way to substitute elements into the master page layout that affect every site. Delegate Controls are changed via activating features; therefore modifications to delegate controls require no changes to the default.master or site pages that are linked to default.master.
WSS provides several standard controls to support navigation including the SiteMapPath control which populates a breadcrumb navigation menu to allow users to navigate from the current site upwards to the top-level site of current site collection. Navigation is based on the infrastructure provided by ASP.NET 2.0.
You can also create a custom master page template. To do this you must create the master page template itself, and then create a feature that provisions an instance of this master page in the Master Page gallery for a specific site. Finally you need to redirect site pages to use your custom master page instead of using default.master.
You can customized the look and feel of a site (brand it) by using Cascading Style Sheets.You can find standard language specific CSS files in \TEMPLATE\LAYOUTS\1033\STYLES.The primary file is called core.css. This file is scoped at farm level, so it is not a good idea to change it. Instead one way to change the look and feel is to use Themes which are found in TEMPLATE\THEMES.or we can create a custom.css file and put into TEMPLATE\LAYOUTS\1033\STYLES\<your folder>.Brand images are located in TEMPLATE\IMAGES
Keep writing!!
Showing posts with label Master Page gallery. Show all posts
Showing posts with label Master Page gallery. Show all posts
Thursday, August 13, 2009
SharePoint Master Pages and Branding
Labels:
\TEMPLATE\LAYOUTS\1033\STYLES,
breadcrumb navigation menu,
Cascading Style Sheets,
core.css,
custom master page template,
custom.css,
default.master,
Delegate Controls,
Master Page gallery,
Master Pages and Branding,
MOSS 2007,
Named placeholders,
Sharepoint,
SharePoint Master Pages and Branding,
SiteMapPath,
TEMPLATE\IMAGES,
TEMPLATE\THEMES
Subscribe to:
Posts (Atom)