Sitecore 7.x测试(a/b,多变量)MVC

Sitecore 7.x测试(a/b,多变量)MVC,sitecore,sitecore7,page-editor,multivariate-testing,sitecore-mvc,Sitecore,Sitecore7,Page Editor,Multivariate Testing,Sitecore Mvc,我正在尝试使用sitecore 7.x作为内容管理器来实现web解决方案。我的web应用程序是一个MVC解决方案。我已经安装了Sitecore并设置了MVC项目 问题是当使用*.cshtml布局和@Html.Sitecore().Placeholder(…)和ControllerRenderings时,AB/MV测试不起作用 我已将layout设置为LayoutMVC.cshtml文件来定义项 @inherits System.Web.Mvc.WebViewPage @using Sitecor

我正在尝试使用sitecore 7.x作为内容管理器来实现web解决方案。我的web应用程序是一个MVC解决方案。我已经安装了Sitecore并设置了MVC项目

问题是当使用
*.cshtml
布局和
@Html.Sitecore().Placeholder(…)
ControllerRenderings
时,AB/MV测试不起作用

我已将layout设置为LayoutMVC.cshtml文件来定义项

@inherits System.Web.Mvc.WebViewPage
@using Sitecore.Mvc

<html>
<body>
     MAIN:@Html.Sitecore().Placeholder("main")END
</body>
</html>
@继承System.Web.Mvc.WebViewPage
@使用Sitecore.Mvc
MAIN:@Html.Sitecore().Placeholder(“MAIN”)结束
我将ControllerRendering渲染到
main
占位符中,并希望向此处渲染的组件添加变体。基本上,我可以使用页面编辑器添加变体,在单击页面编辑器中的“保存”之前,一切都正常。然后测试被保存,但我再也看不到第一个变体。我看到了原始项目的内容。我可以选择变体,但不是变体1,而是默认内容

当我开始测试时,它根本不起作用。始终渲染原始项目

当我使用aspx布局的
/sitecore/Layout/Layouts/Sample Layout
时,同样的测试也会起作用,但我需要使用MVC
@Html.sitecore()


此外,DMS在这种配置下工作良好。我可以对内容进行个性化设置。

这似乎是一个bug。我在v7.2更新2中重现了这种行为。我刚刚向Sitecore支持部门记录了这个问题,并将与他们的评论一起报告

更新

Sitecore支持部门已确认这是一个bug。我正在修复。请继续收看

修补程序可在以下位置获得: