tag:blogger.com,1999:blog-136372299889916108.post4308722959541964824..comments2017-10-04T02:18:15.086-04:00Comments on Andrew Richter's Professional Blog: Programmatically Inherit Master Page and CSS in MOSS 2007andrewhttp://www.blogger.com/profile/00163072873567979348noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-136372299889916108.post-30846810366714168252012-07-11T14:31:51.572-04:002012-07-11T14:31:51.572-04:00Hours of searching and this was what I needed. Tha...Hours of searching and this was what I needed. Thank you so muchAnonymoushttps://www.blogger.com/profile/09162512494780396858noreply@blogger.comtag:blogger.com,1999:blog-136372299889916108.post-36470826063855597952010-01-11T05:46:21.133-05:002010-01-11T05:46:21.133-05:00Thanks dude, that helped me a lot !Thanks dude, that helped me a lot !Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-136372299889916108.post-79556952601669542572009-11-19T13:50:04.317-05:002009-11-19T13:50:04.317-05:00Thanks for the information, it was exactly what I ...Thanks for the information, it was exactly what I needed to complete my project.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-136372299889916108.post-9644443204146663852009-04-03T09:24:00.000-04:002009-04-03T09:24:00.000-04:00Thanks for the post!It's exactly what I needed.Thanks for the post!<BR/>It's exactly what I needed.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-136372299889916108.post-44556313741806937102008-12-18T11:15:00.000-05:002008-12-18T11:15:00.000-05:00Rao,Feature Stapling only takes effect on newly cr...Rao,<BR/>Feature Stapling only takes effect on newly created webs. It will not auto-activate on webs you have already created.<BR/><BR/>To change existing webs and newly created webs, you can create 2 separate Features:<BR/>1. A "Web" scoped Feature, and an associated Feature Staple, so that all newly created webs receive the correct master page, css, and inheritance settings.<BR/>2. A "Site" scoped Feature, which traverses your Site Collection and activates the "Web" scoped feature for all sub-webs.**<BR/><BR/>**IMPORTANT NOTE: Be sure not to activate the "Web" feature on the root web of the top level Site Collection, as I am unsure what would happen if you attempt to inherit on a site that has no parent!andrewhttps://www.blogger.com/profile/00163072873567979348noreply@blogger.comtag:blogger.com,1999:blog-136372299889916108.post-61743632542095910542008-12-17T07:16:00.000-05:002008-12-17T07:16:00.000-05:00Andrew,I am having a feature that is having scope ...Andrew,<BR/><BR/>I am having a feature that is having scope "Web" and its working fine, means I am able to chnage master page & custom css for top level site after feature activation. but here If I would like to actiavte for all webs then I have to activate for each. I tried with HashTable Inherits that you mentioned in blog, but no luck. can you please guide me how can I use that hastable thing?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-136372299889916108.post-84267161075701893512008-11-13T20:14:00.000-05:002008-11-13T20:14:00.000-05:00Andrew,Thanks for this great work, I've been strug...Andrew,<BR/>Thanks for this great work, I've been struggling out this and you sorted it. Great post.Andy Danghttps://www.blogger.com/profile/04582864451791958684noreply@blogger.comtag:blogger.com,1999:blog-136372299889916108.post-38479981376197858502008-10-29T16:45:00.000-04:002008-10-29T16:45:00.000-04:00AJ,Unfortunately I am unaware of a similar method ...AJ,<BR/>Unfortunately I am unaware of a similar method for forcing inheritance of the SiteLogoUrl.<BR/><BR/>You might be able to add a new link to the "Site Settings" page which could offer an option "Inherit Logo from Parent" (value to be stored in SPWeb.AllProperties hash), and a button to fire off a one-time SPTimerJob to traverse your SPSite and set the SiteLogoUrl for all SPWeb objects with your custom property defined.andrewhttps://www.blogger.com/profile/00163072873567979348noreply@blogger.comtag:blogger.com,1999:blog-136372299889916108.post-65253056125766612072008-10-07T05:38:00.000-04:002008-10-07T05:38:00.000-04:00Thank you !Tippu, using PublishingWeb object model...Thank you !<BR/><BR/>Tippu, using PublishingWeb object model works only with... publishing webs :-). Since portals are often WSS and MOSS web template mixed, AllProperties seem to be the only generic solution.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-136372299889916108.post-86153463833984807972008-10-06T19:33:00.000-04:002008-10-06T19:33:00.000-04:00Hey Andrew - Fantastic effort on uncovering this c...Hey Andrew - Fantastic effort on uncovering this code. There's loads of posts out there that do features where all the URL's are specified, this is a very fresh approach as it's true to the SharePoint idea of inheritance. I've managed to shoehorn this into a feature and kick it off with a feature staple. One thing i'd like to now do is inherit the parent's SiteLogoUrl , do you know if this is possible with the way you acheived the above.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-136372299889916108.post-89938687183816455802008-07-22T06:37:00.000-04:002008-07-22T06:37:00.000-04:00I use the publishingweb object to set the master p...I use the publishingweb object to <BR/>set the master page url, Custom master page url and style.<BR/><BR/><BR/>PublishingWeb publishingWeb = PublishingWeb.GetPublishingWeb(oWebImp);<BR/> publishingWeb.MasterUrl.SetValue(MasterPageName,, false);<BR/>publishingWeb.Update();Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-136372299889916108.post-49012165575278841652008-06-11T16:42:00.000-04:002008-06-11T16:42:00.000-04:00Phil,Thanks for pointing out this only works with ...Phil,<BR/>Thanks for pointing out this only works with MOSS installations. You might try iterating through the AllProperties hash to see what keys and values it contains in a WSS deployment. You can always add custom keys/values into the hash, but then you would need to develop functionality to take advantage of your custom properties.andrewhttps://www.blogger.com/profile/00163072873567979348noreply@blogger.comtag:blogger.com,1999:blog-136372299889916108.post-26403744775476200552008-06-11T12:27:00.000-04:002008-06-11T12:27:00.000-04:00Hey Andrew - I may have done something wrong, but ...Hey Andrew - I may have done something wrong, but I could only get your hash solution to work on a MOSS site, and it didn't work on WSS sites. I believe its because WSS sites don't have the masterpage inheritance available through the UI under look and feel. A bugger though, since that is specifically what I'm trying to work around.<BR/><BR/>Thanks though!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-136372299889916108.post-17820673826222337902008-05-27T17:29:00.000-04:002008-05-27T17:29:00.000-04:00Agreed with Ishai. Thanks for a useful post.Agreed with Ishai. Thanks for a useful post.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-136372299889916108.post-41198114521776212482008-05-08T21:41:00.000-04:002008-05-08T21:41:00.000-04:00AWESOME!you are a life saver don't stop blogging!AWESOME!<BR/>you are a life saver don't stop blogging!Ishai Sagi [SharePoint MVP]https://www.blogger.com/profile/15906615979471157409noreply@blogger.com