在Sitecore 7中,当使用MVC创建一个控制器,它可以使用项目(或其模板标准值)上定义的呈现返回PartialView结果,而不必为该项目设置布局和呈现时,有什么方法吗?
我可以看到如何使用自定义模板字段来做到这一点,但这似乎是一种老生常谈的方式。有没有更好的方法来实现以下目标:
public PartialViewResult MyAction(string someParameter)
{
Item selectedItem;
//some code here to retrieve sitecore item based on the value of somePa