我使用的是富文本編輯器來顯示產品頁面上的說明,但頁面呈現爲:如何從富文本編輯器的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