开发者

Is there documentation for the @Model type in Orchard?

I'm customizing my father-in-law's Orchard site and trying to create a .cshtml file to control the display of a Containable content type, but I'm having a bugger of a time finding the data in the @Model field. Is there any documentation on it anywhere?

So far I've found @Model.Slug and @Model.Title开发者_如何学C. What I'd really like is access to the custom fields on the Content Type.


The Model object is of a dynamic type so it's properties are dynamically added depending on what modules are being used.

If you are using the new 1.1.30 version of Orchard you can use the new Shape Tracing tool which is part of the Deisgner Tools module which can be installed through the modules gallery. This will add a panel to the bottom of your website page that will allow you to see and navigate through the Model object.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜