<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: &quot;Guru of governance?&quot;</title>
	<atom:link href="http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/</link>
	<description>After much frustration, it seems DEFAULT is the way to go...</description>
	<lastBuildDate>Tue, 27 Jul 2010 11:20:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Ryan McIntyre : Web.Config FeatureReceiver Update</title>
		<link>http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/comment-page-1/#comment-1349</link>
		<dc:creator>Ryan McIntyre : Web.Config FeatureReceiver Update</dc:creator>
		<pubDate>Mon, 21 Jul 2008 16:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/#comment-1349</guid>
		<description>[...] However, during that discussion, we talked a bit about security.&#160; Mike referred me to a post by a colleague of his inspired by this very topic.&#160; The gist of the discussion and post is that modifying the [...]</description>
		<content:encoded><![CDATA[<p>[...] However, during that discussion, we talked a bit about security.&#160; Mike referred me to a post by a colleague of his inspired by this very topic.&#160; The gist of the discussion and post is that modifying the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CleverWorkarounds &#187; A neat trick with the publishing feature</title>
		<link>http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/comment-page-1/#comment-1329</link>
		<dc:creator>CleverWorkarounds &#187; A neat trick with the publishing feature</dc:creator>
		<pubDate>Sat, 19 Jul 2008 14:48:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/#comment-1329</guid>
		<description>[...] only ever modify settings related to that site collection. I previously blogged about how it was bad practice for a site collection feature to modify the web.config files for a given web application.  If you [...]</description>
		<content:encoded><![CDATA[<p>[...] only ever modify settings related to that site collection. I previously blogged about how it was bad practice for a site collection feature to modify the web.config files for a given web application.  If you [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/comment-page-1/#comment-685</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 05 Jun 2008 23:53:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/#comment-685</guid>
		<description>Hey Ryan

In the case of webparts, if they are bunded into a solution (wsp file then there is no need to deal with it at the feature level. the solution manifest can make this change for you and since installing a solution is performed by a farm administrator, the security boundaies remain intact.

cheers</description>
		<content:encoded><![CDATA[<p>Hey Ryan</p>
<p>In the case of webparts, if they are bunded into a solution (wsp file then there is no need to deal with it at the feature level. the solution manifest can make this change for you and since installing a solution is performed by a farm administrator, the security boundaies remain intact.</p>
<p>cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan McIntyre</title>
		<link>http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/comment-page-1/#comment-683</link>
		<dc:creator>Ryan McIntyre</dc:creator>
		<pubDate>Thu, 05 Jun 2008 18:31:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/#comment-683</guid>
		<description>Mike and I have talked about this topic before (he pointed me to your post) since we were thinking of very similar ideas surrounding web.config modifications. I was thinking more on this recently...Since deploying a web part required a SafeControl entry into the web config, would you recommend all web parts be scoped at the web application level?</description>
		<content:encoded><![CDATA[<p>Mike and I have talked about this topic before (he pointed me to your post) since we were thinking of very similar ideas surrounding web.config modifications. I was thinking more on this recently&#8230;Since deploying a web part required a SafeControl entry into the web config, would you recommend all web parts be scoped at the web application level?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil Richards</title>
		<link>http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/comment-page-1/#comment-395</link>
		<dc:creator>Neil Richards</dc:creator>
		<pubDate>Mon, 21 Apr 2008 21:21:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/#comment-395</guid>
		<description>Just a quick update to share.  

turns out the use of the web.config was unnecessary (indeed inappropriate).  Really I should have been using configurable web-part properties (which allow for both hard-coding AND changing).  Part of the problem was I didn&#039;t know how to get relative urls (to point to the 12hive).  

The same approach for getting relative urls (SPContext.Current.Site.ServerRelativeUrl) can be used to find sharepoint objects throughout the site, so by being a litte bit clever, changes to the web.config can be minimised (which seems like a positive thing). 

Thanks again.</description>
		<content:encoded><![CDATA[<p>Just a quick update to share.  </p>
<p>turns out the use of the web.config was unnecessary (indeed inappropriate).  Really I should have been using configurable web-part properties (which allow for both hard-coding AND changing).  Part of the problem was I didn&#8217;t know how to get relative urls (to point to the 12hive).  </p>
<p>The same approach for getting relative urls (SPContext.Current.Site.ServerRelativeUrl) can be used to find sharepoint objects throughout the site, so by being a litte bit clever, changes to the web.config can be minimised (which seems like a positive thing). </p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/comment-page-1/#comment-369</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 17 Apr 2008 17:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/#comment-369</guid>
		<description>No problems, you have renewed my faith that app developers and governance can co-exist :-)

cheers mate

Paul</description>
		<content:encoded><![CDATA[<p>No problems, you have renewed my faith that app developers and governance can co-exist <img src='http://www.cleverworkarounds.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>cheers mate</p>
<p>Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil Richards</title>
		<link>http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/comment-page-1/#comment-368</link>
		<dc:creator>Neil Richards</dc:creator>
		<pubDate>Thu, 17 Apr 2008 16:45:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/#comment-368</guid>
		<description>Really helpful, thanks.  I&#039;m keen to have something admin friendly / admin approved, and what you say about activating features makes perfect sense.  With your help I think I&#039;m on the right track now.</description>
		<content:encoded><![CDATA[<p>Really helpful, thanks.  I&#8217;m keen to have something admin friendly / admin approved, and what you say about activating features makes perfect sense.  With your help I think I&#8217;m on the right track now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/comment-page-1/#comment-367</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 17 Apr 2008 09:55:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/#comment-367</guid>
		<description>In relation to GUID or hard code, forget GUID I think - I&#039;m sure you can go by name (but I don&#039;t code full time I&#039;d have to double check). But you can draw some comfort from some of the ideas used by the publishing feature. Upon enablement, several lists and libraries are created in the root of the site collection, meaning that it does rely on hard coded paths, relative to the site collection root.

In relation to placing files in the 12 hive, your right, it is theoretically available to any site collection, but its the solution that does this, not feature activation. Solutions are always added to the store by the farm administrator. Thus those supporting files can be placed in their correct locations via the activation of the solution by the farm administrator.

But the farm administrator chooses which web app to deploy the solution to, which is in the form of a feature. So only 1 web app would have the feature available to be activated from. (And at this point web.config has been adjusted for safecontrol and the like).

At that point, all of the pre-requisite files are in their right places, and all activating the feature does is add the web part to the gallery of the site collection, and create some of the supporting config items.

Hope this helps, its only off the top of my head though so apologigies if I get it wrong..</description>
		<content:encoded><![CDATA[<p>In relation to GUID or hard code, forget GUID I think &#8211; I&#8217;m sure you can go by name (but I don&#8217;t code full time I&#8217;d have to double check). But you can draw some comfort from some of the ideas used by the publishing feature. Upon enablement, several lists and libraries are created in the root of the site collection, meaning that it does rely on hard coded paths, relative to the site collection root.</p>
<p>In relation to placing files in the 12 hive, your right, it is theoretically available to any site collection, but its the solution that does this, not feature activation. Solutions are always added to the store by the farm administrator. Thus those supporting files can be placed in their correct locations via the activation of the solution by the farm administrator.</p>
<p>But the farm administrator chooses which web app to deploy the solution to, which is in the form of a feature. So only 1 web app would have the feature available to be activated from. (And at this point web.config has been adjusted for safecontrol and the like).</p>
<p>At that point, all of the pre-requisite files are in their right places, and all activating the feature does is add the web part to the gallery of the site collection, and create some of the supporting config items.</p>
<p>Hope this helps, its only off the top of my head though so apologigies if I get it wrong..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil Richards</title>
		<link>http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/comment-page-1/#comment-366</link>
		<dc:creator>Neil Richards</dc:creator>
		<pubDate>Thu, 17 Apr 2008 08:00:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/#comment-366</guid>
		<description>Thanks for the response, 

I thought of doing what you suggested, but couldn&#039;t figure out how to avoid hard coding list guids or file paths into my code (i.e. the guid of the config list or the path of the xml file).  

I suppose I could put the xml file into %12hive%/TEMPLATES/LAYOUTS/INC/myfolder/  

Also, my deployment feature is pushing a number of files into the 12 Hive (css, ascx user control, javascript for ajax, etc).  The inenvitable impact is that these become available to every site collection.  So that seems to only be appropriate at the web-application (or farm?) scope.  I&#039;m using Ted Pattison&#039;s stsdev tool which you&#039;ve written about previously, and it seems like using the 12hive for this purpose is &quot;best practice&quot;, but it feels a little messy, as every sharepoint site now gets access to the underlying resources.</description>
		<content:encoded><![CDATA[<p>Thanks for the response, </p>
<p>I thought of doing what you suggested, but couldn&#8217;t figure out how to avoid hard coding list guids or file paths into my code (i.e. the guid of the config list or the path of the xml file).  </p>
<p>I suppose I could put the xml file into %12hive%/TEMPLATES/LAYOUTS/INC/myfolder/  </p>
<p>Also, my deployment feature is pushing a number of files into the 12 Hive (css, ascx user control, javascript for ajax, etc).  The inenvitable impact is that these become available to every site collection.  So that seems to only be appropriate at the web-application (or farm?) scope.  I&#8217;m using Ted Pattison&#8217;s stsdev tool which you&#8217;ve written about previously, and it seems like using the 12hive for this purpose is &#8220;best practice&#8221;, but it feels a little messy, as every sharepoint site now gets access to the underlying resources.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/comment-page-1/#comment-365</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 16 Apr 2008 23:53:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/04/04/guru-of-governance/#comment-365</guid>
		<description>The settings of this web part - should the site collection administrator be the one to modify them? If that is the case, one option is possibly to use a list on the top level site of the site collection for your configuration? Either that or an XML file somewhere on the root site (if its in a document library than you get recycle bin and versioning if you want it). 

Your feature can then be scoped to site collection and it can create this list/config file as well as copy your web part to the web part gallery?

regards

Paul</description>
		<content:encoded><![CDATA[<p>The settings of this web part &#8211; should the site collection administrator be the one to modify them? If that is the case, one option is possibly to use a list on the top level site of the site collection for your configuration? Either that or an XML file somewhere on the root site (if its in a document library than you get recycle bin and versioning if you want it). </p>
<p>Your feature can then be scoped to site collection and it can create this list/config file as well as copy your web part to the web part gallery?</p>
<p>regards</p>
<p>Paul</p>
]]></content:encoded>
	</item>
</channel>
</rss>
