Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

In our environment i had created a feature stapler which will brand the personal site of users so that it will follow the same branding all over the site collection but when a user is creating a blog inside his personal site it is showing default master page .Can anyone suggest me how to make the blog also to have the same master page

Thanks

share|improve this question
add comment

1 Answer 1

Depending on how you configured your staples you might want to consider attaching it to the Blog Site template too (most likely you attached it to SPSPERS#0). You would need to target the template BLOG#0 also.

Simply add another line to your stapling feature as follows

<FeatureSiteTemplateAssociation Id="<GUID OF FEATURE HERE>" TemplateName="BLOG#0" /> 

Also you would probably would like to validate whether your features are compatible also.

Hope it helps, C:\Marius

share|improve this answer
    
Hi Marius .. I did the same but its not taking effect can you help me –  Anil May 3 '12 at 18:16
    
Hi Marius when i go to the blog and go to manage site feature and enable SharePoint Server Publishing then it is getting the branding .My features are enabling the publishing at site collection level but it is not enabling the site level am i missing something?? –  Anil May 3 '12 at 18:23
    
The Publishing Infrastructure features are of 2 types, related to their scope (Site Collection or Sub-Site), which also means that you need to activate different features, as follows: At the site collection level F6924D36-2FA8-4f0b-B16D-06B7250180FA (e.g. when you create the My Sites for each user) - which you probably do already and the "SharePoint Server Publishing feature" with id 94C94CA6-B32F-4da9-A9E3-1F3D343D7ECB . For a sub-site to become a full-publishing site you need to have them both activated. A word of warning: BLOG site is NOT meant to be a Publishing Site –  C. Marius - MVP May 3 '12 at 18:46
    
Hi marius ia m adding the features as follows <FeatureSiteTemplateAssociation Id="F6924D36-2FA8-4f0b-B16D-06B7250180FA" TemplateName="SPSPERS#0" /> <!-- SharePoint Server Publishing Infrastructure - Scope: Site --> <FeatureSiteTemplateAssociation Id="94C94CA6-B32F-4da9-A9E3-1F3D343D7ECB" TemplateName="SPSPERS#0" /> <!-- SharePoint Server Publishing Infrastructure - Scope: Site --> <FeatureSiteTemplateAssociation Id="94C94CA6-B32F-4da9-A9E3-1F3D343D7ECB" TemplateName="BLOG#0" /> <!-- SharePoint Server Publishing Infrastructure - Scope: Site --> Is there any thing else i need.. –  Anil May 3 '12 at 18:59
    
I believe you need to validate the scope of your Stappler (available are FARM, WEB APPLICATION and SITE COLLECTION level), see here example doing the exact same thing sharepointnutsandbolts.com/2007/05/feature-stapling.html –  C. Marius - MVP May 3 '12 at 19:32
show 4 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.