简体   繁体   English

Sharepoint 2010 Mysite Blog品牌(与发布)不起作用

[英]Sharepoint 2010 Mysite Blog branding (with publishing) not working

I did some branding for an intranet site for a client in SharePoint 2010 and build a solution. 我为SharePoint 2010中的客户端的Intranet网站做了一些商标,并构建了解决方案。 The solution contains some masterpages which are based on the publishing features of SharePoint. 该解决方案包含一些基于SharePoint发布功能的母版页。 The client's intranet site also uses Mysite and I use feature stapling to apply the feature with the Mysite masterpage to the host and personal Mysite. 客户的Intranet站点也使用Mysite,并且我使用功能装订将具有Mysite主页的功能应用于主机和个人Mysite。

The publishing features are also activated for Mysite, so the branding is consistent with the intranet site. Mysite的发布功能也已激活,因此品牌与Intranet网站一致。 This works fine. 这很好。 When i'm activating the feature on the mysite host, the branding is applied on both the host and the personal site. 当我在mysite主机上激活功能时,品牌将同时应用于主机和个人站点。

But what still isn't working after endless trial and error is the branding on the personal blog site. 但是,经过无休止的反复试验后,仍然无法正常工作的是个人博客网站上的品牌。 When the user clicks on the "create blog" link on his personal Mysite the new site is created. 当用户单击其个人Mysite上的“创建博客”链接时,将创建新站点。 But when the blog site appears, the branding is not showing up. 但是,当博客站点出现时,品牌没有显示出来。 It looks like the right features are not enabled. 似乎未启用正确的功能。

The only step i manually have to take to make the branding work on the blog site, is to enable publishing in the features. 为了使品牌在博客网站上起作用,我必须要做的唯一步骤就是启用功能发布。 But thats manually, i can't make it work from within the solution. 但这就是手动操作,我无法使其在解决方案中正常工作。

I've tried some of the following steps: 我尝试了以下一些步骤:

  • Activate the publishing feature with stapling (I've also tried some other available publishing features) : On the personal site collection and blog site : 通过装订激活发布功能(我也尝试了其他一些可用的发布功能):在个人网站集和博客网站上:

     //default branding feature <FeatureSiteTemplateAssociation Id="0676d0e2-2acf-4ac0-9ce6-e6952a4893c5" TemplateName="SPSMSITEHOST#0" /> <FeatureSiteTemplateAssociation Id="0676d0e2-2acf-4ac0-9ce6-e6952a4893c5" TemplateName="SPSPERS#0" /> //publishing features <FeatureSiteTemplateAssociation Id="f6924d36-2fa8-4f0b-b16d-06b7250180fa" TemplateName="SPSPERS#0" /> <FeatureSiteTemplateAssociation Id="94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb" TemplateName="BLOG#0" /> 

    This makes the layout work right (publishing is activated), but i see no blog content, the contentarea is blank. 这样可以使布局正常工作(激活了发布),但是我看不到博客内容,contentarea为空白。 Is the order of features wrong? 功能顺序错误吗? (i've tried different orders). (我尝试了不同的命令)。 Why isn't there any content showing up? 为什么没有显示任何内容? Are the blog features not activated? 博客功能是否未激活?

    Maybe i need to add more features in a particularly order to be activated? 也许我需要特别激活才能添加更多功能?

  • Activate the masterpage feature to the blog: 激活博客的主页功能:

     <FeatureSiteTemplateAssociation Id="0676d0e2-2acf-4ac0-9ce6-e6952a4893c5" TemplateName="SPSMSITEHOST#0" /> <FeatureSiteTemplateAssociation Id="0676d0e2-2acf-4ac0-9ce6-e6952a4893c5" TemplateName="SPSPERS#0" /> <FeatureSiteTemplateAssociation Id="0676d0e2-2acf-4ac0-9ce6-e6952a4893c5" TemplateName="BLOG#0" /> 

    This doesn't work. 这行不通。 The result is a blog site without branding. 结果是没有品牌的博客网站。

  • Activate the masterpage feature global instead of applying it to seperate sites. 全局激活母版页功能,而不是将其应用于单独的站点。

     <FeatureSiteTemplateAssociation Id="0676d0e2-2acf-4ac0-9ce6-e6952a4893c5" TemplateName="GLOBAL" /> 

    This doesn't work. 这行不通。 The result is a blog site without branding. 结果是没有品牌的博客网站。

Maybe i have to find a solution in another direction: it would be great if somebody could help me with some next steps. 也许我必须从另一个方向寻找解决方案:如果有人可以帮助我进行下一步工作,那将是很好的。 I can't find any good information about this. 我找不到关于此的任何良好信息。 Thanks in advance. 提前致谢。

Did you find any solution to the problem i am also facing the same problem . 您是否找到解决问题的办法,我也面临同样的问题。 I can help you with one thing though when you activate publishing on blog the url will go .../Pages/Default.aspx just remove the pages and you will see the Content 我可以为您提供一件事,但是当您在博客上激活发布时,URL将会... // Pages / Default.aspx只是删除页面,您将看到内容

尝试使用WebProvisioned事件处理程序通过代码来激活PublishingWeb功能,您可以将其装订到博客站点。

I solved the problem just with stapling! 我只用装订就解决了这个问题! The solution is to first activate the SharePoint Blog feature on the Mysite Personal Site Collection. 解决方案是首先激活Mysite Personal Site Collection上的SharePoint Blog功能。 And then after that, activate the right publishing features on the Mysite Personal site collection and the Blog site. 然后,在Mysite Personal网站集和Blog网站上激活正确的发布功能。

  • The order of activation is therefore important 因此,激活顺序很重要
  • The Blog feature must not be activated on the Blog site itself, but on te Personal Site Collection 不得在Blog网站本身上激活Blog功能,而应在Personal Site Collection上激活
  • Choose the right publishing features for both the Personal Site Collection and the Blog site 为个人网站集和博客网站选择正确的发布功能

     <!-- 1. My own feature with Masterpage on both Mysite Host and Mysite Personal --> <FeatureSiteTemplateAssociation Id="0676d0e2-2acf-4ac0-9ce6-e6952a4893c5" TemplateName="SPSMSITEHOST#0" /> <FeatureSiteTemplateAssociation Id="0676d0e2-2acf-4ac0-9ce6-e6952a4893c5" TemplateName="SPSPERS#0" /> <!-- 2. !!SharePoint Blog feature must first be activated on the Mysite Personal--> <FeatureSiteTemplateAssociation Id="863DA2AC-3873-4930-8498-752886210911" TemplateName="SPSPERS#0"/> <!-- 3. SharePoint Server Publishing Infrastructure on Mysite Personal: --> <FeatureSiteTemplateAssociation Id="f6924d36-2fa8-4f0b-b16d-06b7250180fa" TemplateName="SPSPERS#0"/> <!-- 4. SharePoint Server Publishing on Blog: --> <FeatureSiteTemplateAssociation Id="94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb" TemplateName="BLOG#0"/> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM