<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>SharePoint Magazine - Latest Comments in Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.disqus.com/</link><description>SharePoint Magazine is an online magazine dedicated to the world of SharePoint and related Information Worker technologies.</description><language>en</language><lastBuildDate>Tue, 01 Sep 2009 18:09:27 -0000</lastBuildDate><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-15736908</link><description>Hi, I'm fairly new to Sharepoint, but I created a masterpage in SharePoint designer and then copied it over into a VS masterpage so I could deploy it using STSdev. I deployed it and it works fine.  But I get an error when I select my masterpage in the site settings.  But when I go into Sharepoint Designer and make the master page Ghosted it works fine.  Any ideas why?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bdspurlock</dc:creator><pubDate>Tue, 01 Sep 2009 18:09:27 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-14576556</link><description>Hello - just double checking - this only works on MOSS with publishing turn on, right? will it work on WSS 3.0 ? (I want to save me a lot of pain trying to figure it out why it isn't working when the truth is I have the wrong vesion of the product) :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tina C</dc:creator><pubDate>Mon, 10 Aug 2009 12:30:31 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-13250641</link><description>I was able to figure it out. The reason was in the permissions of the feature folder. Since I created the feature folder by right clicking in windows explorer and creating it, it didn't have the inherited permissions of the main Features Folder so I had to right click on it -&amp;gt; properties -&amp;gt; security - &amp;gt; Advanced - &amp;gt; Permissions Tab - &amp;gt; check the inherit all permission check box and Voila :) it worked :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">neamattazi</dc:creator><pubDate>Fri, 24 Jul 2009 02:41:16 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-13101953</link><description>I have a problem, I create it a master page based on blueband master page and then I deployed it using a feature. The feature gets installed and when i try to activate it, it tells me that it's successfully activated and then when i try to open the sharepoint site it gives me 403 forbidden. I then deactivate the feature and try again and i find that the files are there so I change the master page from the master page link and then it works. When for any reason an IISRESET is done to the server, my master page lose it's css that is applied to it and it loses its images.. Any idea what's the problem? Is it related to the feature itself? BTW: i used the same feature on a test server and it worked fine and it was activated and the site is working fine.&lt;br&gt;&lt;br&gt;Thank you very much in advace</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">neamattazi</dc:creator><pubDate>Wed, 22 Jul 2009 05:47:00 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-11614087</link><description>Hey Bill,&lt;br&gt;The best place to deploy CSS files is in the Layouts folder of the 12 hive (usually: Program Files\Common Files\Microsoft Shared\web server extensions\12\Template\Layouts). The interesting thing about the layouts folder in the 12 hive is that SharePoint creates and IIS path to that folder with "_layouts". So, you can reference things in that folder by placing "_layouts/{path to css}" in your html.&lt;br&gt;Another option is to put the css files in the style library/list in the actually SharePoint site. This is a good option if you want to modify css directly in SharePoint. &lt;br&gt;I usually choose the Layout folder option for the following reasons:&lt;br&gt;1. It is real easy to deploy&lt;br&gt;2. It is how SharePoint does it's css files&lt;br&gt;3. There is some caching going on with that Layouts folder which can give you some performance help (but - this is minimal)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ggalipeau</dc:creator><pubDate>Tue, 23 Jun 2009 06:29:22 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-11579364</link><description>Hi Greg,&lt;br&gt;&lt;br&gt;Great article. I have a master page ready but it uses a special css file in conjunction with core and others.&lt;br&gt;&lt;br&gt;What is the best way to deploy my special CSS file and where? Should I list it in the elements.xml? I want the new master page (and it's css) to be available to all sites in the collection.&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;Bill</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bill Spencer</dc:creator><pubDate>Mon, 22 Jun 2009 16:45:01 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-10049400</link><description>Yes Cait,&lt;br&gt;If you edit it in SharePoint Designer it will get UnGhosted. But, if you just deploy it this way with a feature, then it will stay Ghosted. So, SharePoint Designer editing is what makes a file UnGhosted.&lt;br&gt;I think the best way to go for doing A LOT of customizations to master pages is either the route dicussed in this series (i.e.: packaging up a site definition - keep reading this series of articles to get to that) or using feature receivers (I didn't cover feature receivers in this series of articles because it was getting long). You make the decision of feature receivers vs custom site definitions based on whether you want to utilize the out of the box site definitions, of if you need completely custom ones to do other stuff like changing the zone configuration or the default lists and webparts.&lt;br&gt;Either way you will utilize a WSP package to do your deploy.&lt;br&gt;The packing up in a WSP to deploy is the best reason to use solutions over SharePoint Designer. The Unghosting aspect is a secondary reason. So, yes, I do recommend against SharePoint Designer for deployment reasons. However, I do use SharePont Designer to "design" my pages on a test site. Then, after I have finished designing them, I move them into this solution methodology so I can deploy to multiple environments.&lt;br&gt;Hope that makes sense,&lt;br&gt;Greg</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ggalipeau</dc:creator><pubDate>Wed, 27 May 2009 07:51:27 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-9801364</link><description>Hi Greg,&lt;br&gt;Once you deploy the master page this way, it will get unghosted if you then try to edit it with SharePoint Designer, correct?  And then you'll have a different version in the database than what you have sitting in the 12 hive?  I like this method, but I'm trying to figure out what's the best way to go.  I have A LOT of customization to do for the master page...  And I want to make sure it's easy to deploy on Dev, Production, and in the future.  Do you recommend against using SharePoint Designer for the master pages?  Aren't there benefits to using it?&lt;br&gt;Thanks!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Cait</dc:creator><pubDate>Fri, 22 May 2009 13:54:45 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-7522083</link><description>Hi Bill,&lt;br&gt;As the author of this article, I would like to mention it is a blog. And the blog prgram is what caused those #8220 in the view source. There is not much I can do about that, this blog takes articles from multiple different authors, so I have no control over the program. I would suggest you contact to owner of this site rather than leaving a comment for one of the participants. &lt;br&gt;As for the mistake in the previous article. I just have to appologize. It was a key stroke mistake. It had nothing to do with lack of knowledge around "English syntax".&lt;br&gt;Also, just so you know, this is all community driven, it is not a pay site. I volunteer my time. It has helped a lot of people. And, writing in blog's is very hard to do. I don't know if you have ever used a blog editor before. They change symbols on you sometimes and they make it very hard to proof read. So, please be gentle on people volunteering their time. These kind of comments make people not want to volunteer anymore.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ggalipeau</dc:creator><pubDate>Thu, 26 Mar 2009 08:07:36 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-7449097</link><description>I don't mean to be abrupt, but it's my nature. It's good content, but since this is a "Magazine", I expect that an editor read this (contrasted with a blog): If you view source, all the #8220;   #8221 and $8243; should be replaced with &amp;quot; so the code can be copied. In at least one case you have an unquoted XML attribute (xmlns=http://schemas.microsoft.com/sharepoint/). &lt;br&gt; &lt;br&gt;The previous article in the series contained the sentence "Please not the intent of the above change is to show that the out of the box SharePoint controls can be changed." Do you mean 'note' rather than 'not'?&lt;br&gt;&lt;br&gt;If you don't know English syntax, why should I trust your SharePoint syntax?&lt;br&gt;&lt;br&gt;Really this is a subject I wan't to understand and I'll wade through it, you just keep forcing me to slam on the brakes as I read.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">bill</dc:creator><pubDate>Mon, 23 Mar 2009 15:00:24 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-7431854</link><description>Cool . I leaned very quickly how to deploy master files via feature</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anuradha</dc:creator><pubDate>Mon, 23 Mar 2009 07:05:07 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-6579016</link><description>Greetings esteemed co-Sharepointers,&lt;br&gt;&lt;br&gt;If I might suggest, getting such lists is a snap using powershell. &lt;br&gt;I recommend a Google search for "Powershell Extensions for Sharepoint".. &lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;-MV</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mark Vogt</dc:creator><pubDate>Tue, 24 Feb 2009 15:48:47 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-6405620</link><description>thanks for the replie(s) Greg. Good idea.&lt;br&gt;&lt;br&gt;one suggestion since we get emails from comments made one comments : create a 1st comment for your new post and ask to comment as a reply to it. .. until they enable email notif for the blog writer ;-)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francois81</dc:creator><pubDate>Thu, 19 Feb 2009 12:09:32 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-6402474</link><description>Hi john,&lt;br&gt;Sorry it took me so long to reply. I don't get emails sent to me when someone leaves me a comment here. I agree - it is cumbersome. But, there are actually good architectual decisions on why everything was setup this way. If you understand "every" situation in SharePoint, it actually makes sense.&lt;br&gt;One thing I do is set up all my plumbing in a solution. Then, whenever I go on a project, all I have to do is edit the master page and all the deployment plumbing is there for me. So, the cumbersome part was done a long time ago for me and I can concentrate on my customizations each time.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ggalipeau</dc:creator><pubDate>Thu, 19 Feb 2009 09:57:34 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-6402408</link><description>Hi Francois,&lt;br&gt;Sorry it took me so long to reply. I don't get emails sent to me from here when someone leaves a comment. I don't know of an stsadm command to do that. But, you can build your own stsadm commands or you could build a simple winform to do that. Then, all you would have to do is loop through the sites and sub-sites. On each of those objects (SPSite and SPWeb), there is a list property called Features. If the feature is in that list it has been activated for that site.&lt;br&gt;That will show you the activated features.&lt;br&gt;If you are just look for all the deployed features, that is easy too. You can loop through the feature list of the farm. Just get a reference to SPFarm and loop through it like this:&lt;br&gt;foreach (SPFeatureDefinition feature in SPFarm.Local.FeatureDefinitions)&lt;br&gt;That will tell you every possible feature definition that has been deployed on the farm (whether it is active or not)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ggalipeau</dc:creator><pubDate>Thu, 19 Feb 2009 09:54:36 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-5095657</link><description>Great article in a great series. However having to do all this stuff do deploy just one customized file is really frustrating. Programmers should employ more better their time, and designers should not having to do these kind od stuff just to change the layout of a site.&lt;br&gt;Thanks again</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">john</dc:creator><pubDate>Tue, 13 Jan 2009 13:29:27 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-4932158</link><description>Great article, and yes it was worth going thru this deployment way to understand the Site def one for me at least.&lt;br&gt;&lt;br&gt;Question : is there a way to list all the deployed Features ? &lt;br&gt;sthg such as:&lt;br&gt;stsadm -o enumfeature -url &lt;a href="http://mysitecollecitonpath" rel="nofollow"&gt;http://mysitecollecitonpath&lt;/a&gt;&lt;br&gt;?&lt;br&gt;thanks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Francois81</dc:creator><pubDate>Tue, 06 Jan 2009 07:48:35 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-4091380</link><description>Hey Mike,&lt;br&gt;The last article in the series will address it. But, your issue is around the onet.xml file. There is a "&amp;lt;SiteFeatures&amp;gt;" node and a "&amp;lt;WebFeatures&amp;gt;" node in that file. You have to put the feature id of your feature in one of those (depending on if it is a site or web feature. &lt;br&gt;Hope that helps,&lt;br&gt;Greg</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ggalipeau</dc:creator><pubDate>Mon, 01 Dec 2008 15:47:25 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-3976578</link><description>Greg,&lt;br&gt;Good stuff.  Question.  I wrapped this up as a solution (.wsp file) using wspBuilder.  It deploys cleanly into sharepoint, but the feature does not show up to activate/deactivate on the site.  Do you know what I could be missing?&lt;br&gt;Thanks</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mike</dc:creator><pubDate>Sun, 23 Nov 2008 21:00:06 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-3388859</link><description>Hi, &lt;br&gt;&lt;br&gt;Thank you for this great article.&lt;br&gt;In the 11th step in the "Create Feature" paragraph, you missed filling a link. See {insert link here} tag.&lt;br&gt;&lt;br&gt;Regards,</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Charles</dc:creator><pubDate>Thu, 30 Oct 2008 08:41:06 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-3342306</link><description>Hi Kristof,&lt;br&gt;There are two ways to do this. The easiest way is to add the image to a folder in the 12 hive under the Layouts directory. At that point you can reference the image in the Master Page with _layouts/{folder name}/{file name}.&lt;br&gt;The other way is to put it in an image list on the root site of your page. Then you can reference them in an image tag like so: &amp;lt;img runat="server" src="&amp;lt;% $SPUrl:~SiteCollection/Style Library/Imagename.jpg%&amp;gt;"  /&amp;gt;&lt;br&gt;The advantage of putting them in a list is that you can manage the image in the SharePoint list moving forward. The advantage of putting them in the 12 hive layouts folder is that it is real easy and that is the way SharePoint does it with the default images.&lt;br&gt;&lt;br&gt;To incorporate the layouts approach, you just need to make sure the image gets moved to the 12 hive layouts folder. You can either manually move it there, or you can have a solution do the move for you. We will talk more about this in the last article in this series.&lt;br&gt;&lt;br&gt;If you do the image list approach, you can either just put the image in the correct list. Or, if you want everything to be done automatic, then you could create the list as a featre and add the image when the feature is being created. However, that is a complete other subject (i.e.: creating lists and list instances as features).</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ggalipeau</dc:creator><pubDate>Tue, 28 Oct 2008 10:43:06 -0000</pubDate></item><item><title>Re: Deploying the Master Page (Master Pages and SharePoint part 4 of 6)</title><link>http://sharepointmagazine.net/?p=1273#comment-3339274</link><description>How can i add extra pictures to a custom masterpage?&lt;br&gt;Do they need to be put in elements and feature xml file?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kristof</dc:creator><pubDate>Tue, 28 Oct 2008 04:05:05 -0000</pubDate></item></channel></rss>