我使用的是富文本编辑器来显示产品页面上的说明,但页面呈现为:如何从富文本编辑器的HTML标签一把umbraco(剃刀)
<p>text description</p>
用于描述宏:
剃刀语法:
@foreach (var page in @Model.Children)
{
<div id="productSection">
<div id="productstext">
<div id="image">
<a href="@page.Url"><img src="@page.productImage" height="200px" width="230px"/></a> </div>
<div id="title">
<h3>@page.GetProperty("productTitle") </h3> </div>
<div id="description">
@page.GetProperty("product") </div>
</div>
</div>
}
日Thnx提前
到底是什么问题?你是说整个'foreach'循环只呈现一个段落,没有'div',没有'h3'吗? – marapet