Sitecore的6.5 MVC3 [英] Sitecore 6.5 with MVC3

查看:215
本文介绍了Sitecore的6.5 MVC3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须使用Sitecore的6.5 MVC框架,并根据参考文件我可以设置Sitecore的,并做出运行。我创建了MVC3 .NET Web应用程序项目(空白并使用剃刀),我知道点以下的事情

I have to use Sitecore 6.5 with MVC framework and as per the reference document I can setup Sitecore and make that running. I have created MVC3 .NET web application project (blank and using Razor) and I dot know following things


  1. 如何设置布局和Sublayouts? (这必须是不同,那么Web表单我猜)

  2. 什么我必须做使用Sitecore的数据控件如FieldRenderer,文字等。(我想没有那些控制这将是不容易的,我们使用提供页面编辑模式)

  3. 如何使用MVC Sitecore的占位符?

我已经使用本文作为参考。

推荐答案

在present Sitecore的MVC支持设置,使ASP.NET MVC可以工作的旁边的同一主机下Sitecore的安装。

At present Sitecore MVC support is setup so that ASP.NET MVC can work alongside a Sitecore installation under the same hostname.

有关使用MVC与Sitecore的全面支持将在六月左右时间6.5.1更新到来。在这一点上所有你提到的事情加上其他的东西,如填充与上下文数据viewbag将成为可能。

Full support for using MVC with Sitecore will be coming in the 6.5.1 update around June time. At that point all of the things you mention plus other stuff like populating the viewbag with context data will be possible.

有办法才达到这种融合的某些部分,如共享源模块,允许剃须刀使用。我曾亲自写了一个小模块,可让您使用Sitecore的项目MVC路线( Sitecore的MVC路由),但全MVC支持,您将不得不等待,直到六月。

There are ways to achive certain parts of this integration such as a shared source module that allows Razor usage. I have personally written a small module that lets you use MVC routes with sitecore items (Sitecore MVC Routing) but for full MVC support you will have to wait until June.

这篇关于Sitecore的6.5 MVC3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆