在phpcms我写了{str_cut($r[description],100)}为什么标题可以的出来内容出不来呢?
<divclass="content_con_L_con_R">{pc:contentaction="position"status="99"catid="24"num=...
<div class="content_con_L_con_R">
{pc:content action="position" status="99" catid="24" num="1" posid="2" order="id DESC"}
{loop $data $r}
<p class="con_L_p1"><a href="{$r[url]}" title="{$r[title]}">{str_cut($r[title],50)}</a></p>
<p class="con_L_p2">{str_cut($r[description],100)}</p>
{/loop}
{/pc}
</div>
</div> 展开
{pc:content action="position" status="99" catid="24" num="1" posid="2" order="id DESC"}
{loop $data $r}
<p class="con_L_p1"><a href="{$r[url]}" title="{$r[title]}">{str_cut($r[title],50)}</a></p>
<p class="con_L_p2">{str_cut($r[description],100)}</p>
{/loop}
{/pc}
</div>
</div> 展开
展开全部
需要moreinfo="1",调用副本里的数据。你再试试
<div class="content_con_L_con_R">
{pc:content action="position" status="99" catid="24" num="1" posid="2" moreinfo="1" order="id DESC"}
{loop $data $r}
<p class="con_L_p1"><a href="{$r[url]}" title="{$r[title]}">{str_cut($r[title],50)}</a></p>
<p class="con_L_p2">{str_cut($r[description],100)}</p>
{/loop}
{/pc}
</div>
</div>
<div class="content_con_L_con_R">
{pc:content action="position" status="99" catid="24" num="1" posid="2" moreinfo="1" order="id DESC"}
{loop $data $r}
<p class="con_L_p1"><a href="{$r[url]}" title="{$r[title]}">{str_cut($r[title],50)}</a></p>
<p class="con_L_p2">{str_cut($r[description],100)}</p>
{/loop}
{/pc}
</div>
</div>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询