我正在研究Sitecore的社交连接模块,并试图将社交更新与营销目标联系起来。 Sitecore的documentation状态:Sitecore社交连接目标更新错误
在营销中心,在发布选项卡,单击更新。出现更新选项卡。
当我点击更新,我得到一个警告窗口,指出:“您没有权限查看的任何项目报告”无论是作为开发人员还是以管理员身份登录,我都会收到此警报,因此它似乎不是安全相关的。
我正在使用Social Connected Module 1.1.0 rev运行Sitecore.NET 6.5.0(rev。120427)。 120329.
更新:
- 更新按钮被映射到命令 “社会:标签:显示” 在核心数据库项目/Sitecore的/内容/应用/内容编辑/色带/结块/社交/更新。
- “social:tab:show”已链接到“Sitecore.Social.Publishing.Commands.SocialCenter”Sitecore.Social.config。
- 这里是一个的发送警报代码:
public override void Execute(CommandContext context)
{
Assert.ArgumentNotNull((object) context, "context");
if (context.Items.Length != 1)
return;
if (WebUtil.GetFormValue("scEditorTabs").Contains("social:tab:show"))
{
SheerResponse.Eval("scContent.onEditorTabClick(null, null, 'OpenSocialCenter')");
}
else
{
Item obj = Context.Item;
if (obj == null)
{
SheerResponse.Alert("You do not have permission to see any item reports.", new string[0]);
}
else
[code continues]
- 我子类Sitecore.Social.Publishing.Commands.SocialCenter这样我就可以设置一个断点。以下是我在执行过程中看到的值:
- Sitecore.Context.Item为空。
- context.Items有一个项目,即在营销中心中打开的目标项目。
WebUtil.GetFormValue("scEditorTabs")
返回一个空字符串。该代码似乎期望“社交:标签:显示”。
- 使用Sitecore 6.5 build 3不能解决问题。
- 更新按钮确实正常工作正常的内容项目(而不是目标)。但是,文档明确指出,此按钮将在Marketing Center选项卡上单击。