<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Chris Forbes blogs on SharePoint &#38; .NET &#187; branding</title>
	<atom:link href="http://chrisforbesblogs.net/tag/branding/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisforbesblogs.net</link>
	<description>Developers chat on SharePoint and .NET</description>
	<lastBuildDate>Tue, 08 May 2012 10:58:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='chrisforbesblogs.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/3aa4775025bad14a027d0ade34632a33?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Chris Forbes blogs on SharePoint &#38; .NET &#187; branding</title>
		<link>http://chrisforbesblogs.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://chrisforbesblogs.net/osd.xml" title="Chris Forbes blogs on SharePoint &#38; .NET" />
	<atom:link rel='hub' href='http://chrisforbesblogs.net/?pushpress=hub'/>
		<item>
		<title>Branding application pages</title>
		<link>http://chrisforbesblogs.net/2009/04/27/branding-application-pages/</link>
		<comments>http://chrisforbesblogs.net/2009/04/27/branding-application-pages/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 09:32:27 +0000</pubDate>
		<dc:creator>Chris Forbes</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[application.master]]></category>
		<category><![CDATA[branding]]></category>

		<guid isPermaLink="false">http://chrisforbesblogs.wordpress.com/2009/04/27/branding-application-pages/</guid>
		<description><![CDATA[One thing that is kind of a gotcha when it comes to rebranding your SharePoint sites is application pages. If you have just rebranded your web site either by creating new CSS styles sheets and wiring these to the existing default.master or indeed created your own master page any application pages won’t be rendered using [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&#038;blog=6742676&#038;post=52&#038;subd=chrisforbesblogs&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One thing that is kind of a gotcha when it comes to rebranding your SharePoint sites is application pages. If you have just rebranded your web site either by creating new CSS styles sheets and wiring these to the existing default.master or indeed created your own master page any application pages won’t be rendered using your new styling. Why?…</p>
<p>Application pages live in the <a href="http://chrisforbesblogs.co.uk/2009/04/27/12-hive-quick-file-path-reference/">12 hive</a> ‘layouts’ directory and is available to ALL sites in your farm via a virtual directory called _layouts. Application pages don’t use the&#160; master pages specified within the site, they use their own master page called application.master and this too lives in the layouts directory. </p>
<p>If you go branding the application.master page directly then this is going to change and effect all your sites in your farm. A better approach would be to determine what master.page to use during the page load life-cycle.</p>
<p>So for the project I’m working on at the moment I really only need to brand the ‘file upload’ pages which are used by the users from the standard document library options menu. So, although this is unsupported by Microsoft&#8217;, I have little option but to modify the <strong>upload.aspx</strong> application page directly. Again you can find this in the layouts folder.</p>
<p>As long as you fully document this change and ensure your change control places check this during any future SharePoint software updates released from Microsoft you will be fine.</p>
<p>&#160;</p>
<p>Look for the ‘PlaceHolderAdditionalPageHead’ content place holder then add the following code…</p>
<div><span style="color:blue;"></span></div>
<div><span style="color:blue;">&lt;</span><span style="color:#a31515;">script </span><span style="color:red;">runat</span><span style="color:blue;">=&quot;server&quot;&gt;      <br />&#160;&#160;&#160; protected override void</span>OnPreInit(<span style="color:#2b91af;">EventArgs </span>e)     <br />&#160;&#160;&#160; {     <br />&#160;&#160;&#160;&#160;&#160;&#160; <span style="color:green;">//Call the base class method first      <br />&#160;&#160;&#160;&#160;&#160;&#160; </span><span style="color:blue;">base</span>.OnPreInit(e);     </p>
<p>&#160;&#160;&#160;&#160;&#160; <span style="color:green;">//Dynamically change the MasterPageFile to the current sites&#160;&#160;&#160;&#160;&#160; </span></div>
<div><span style="color:green;">&#160;&#160;&#160;&#160;&#160;&#160; //custom master page      <br />&#160;&#160;&#160;&#160;&#160;&#160; </span>MasterPageFile = SPContext.Current.Web.CustomMasterUrl;     <br />&#160;&#160;&#160; }&#160; <br /><span style="color:blue;">&lt;/</span><span style="color:#a31515;">script</span><span style="color:blue;">&gt;</span></div>
<p> <a href="http://11011.net/software/vspaste"></a>
<p>&#160;</p>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:1618f6ef-9cbe-4219-9347-0f0110b0a7d5" style="display:inline;float:none;margin:0;padding:0;">del.icio.us Tags: <a href="http://del.icio.us/popular/SharePoint" rel="tag">SharePoint</a>,<a href="http://del.icio.us/popular/Application.Master" rel="tag">Application.Master</a>,<a href="http://del.icio.us/popular/branding+application+pages" rel="tag">branding application pages</a>,<a href="http://del.icio.us/popular/MasterPageFile" rel="tag">MasterPageFile</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chrisforbesblogs.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chrisforbesblogs.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chrisforbesblogs.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chrisforbesblogs.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chrisforbesblogs.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chrisforbesblogs.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chrisforbesblogs.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chrisforbesblogs.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chrisforbesblogs.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chrisforbesblogs.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chrisforbesblogs.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chrisforbesblogs.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chrisforbesblogs.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chrisforbesblogs.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chrisforbesblogs.net&#038;blog=6742676&#038;post=52&#038;subd=chrisforbesblogs&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chrisforbesblogs.net/2009/04/27/branding-application-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ed3e25ef8a88f8fff819a7722f1805a9?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">chrisforbesblogs</media:title>
		</media:content>
	</item>
	</channel>
</rss>
