pbootcms專題內容呼叫

黄文Rex發表於2024-10-03
{pboot:nav parent=6}
<p><h5 style="font-size:16px; border-bottom:solid 1px #ddd; height:32px;">[nav:name]</h5></p>
<div class="button-grid">
    {pboot:2nav parent=[nav:scode]}
    <div class="button1" onclick="updateContent('{pboot:content scode="[2nav:scode]"}[content:content]{/pboot:content}')">[2nav:name]</div>
    {/pboot:2nav}
</div>
{/pboot:nav}

pbootcms專題內容呼叫

但上面的程式碼會附帶html標籤, 可以接著處理一下

drophtml=1

pbootcms專題內容呼叫

{pboot:nav parent=6}
<p><h5 style="font-size:16px; border-bottom:solid 1px #ddd; height:32px;">[nav:name]</h5></p>
<div class="button-grid">
    {pboot:2nav parent=[nav:scode]}
    <div class="button1" onclick="updateContent('{pboot:content scode="[2nav:scode]"}[content:content drophtml=1]{/pboot:content}')">[2nav:name]</div>
    {/pboot:2nav}
</div>
{/pboot:nav}

相關文章