Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Orchardcms 如何在包装中显示包装的项目_Orchardcms - Fatal编程技术网

Orchardcms 如何在包装中显示包装的项目

Orchardcms 如何在包装中显示包装的项目,orchardcms,Orchardcms,我想在我的评论模块周围添加一个包装器 我已经设置了包装文件(\Views\wrapper.Parts.disqs.cshtml) 我已将其添加到placement.info中: <Place Parts_Disqus="Content:20;Wrapper=Wrapper_Parts_Disqus" /> 它找到它并包装它,但我不知道应该在包装的中间放什么来显示它包装的内容 我和你一起工作 我查看了Orchard的源代码,有时是它的@Display(Model.Child)有时

我想在我的评论模块周围添加一个包装器

我已经设置了包装文件(
\Views\wrapper.Parts.disqs.cshtml

我已将其添加到placement.info中:

<Place Parts_Disqus="Content:20;Wrapper=Wrapper_Parts_Disqus" />

它找到它并包装它,但我不知道应该在包装的中间放什么来显示它包装的内容

我和你一起工作

我查看了Orchard的源代码,有时是它的
@Display(Model.Child)
有时是其他东西。我试过很多组合


要理解应该在包装中放入什么以使其显示其包装内容,公式是什么?

在我的例子中似乎是这样的

@Display(Model.Metadata.ChildContent)
谢谢: