算了一下 發表於 2024-1-11 00:00:00

织梦首页和列表页怎么调用自定义字段

<span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>首页和列表页怎么调用自定义字段呢!这个问题我一直想了很久,在网上也查了很多资料,一直没结果,结果黄天不负有心人啊,终于找到办法了 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>下面复制一段我的代码: </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
        <div class="right">
                <span><u>复制代码</u></span>
</div>
        代码如下:</div>
<div class="msgborder" id="phpcode1" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
        <br>
        {dede:arclist row='4' typeid='10' flag='p' channelid='2' addfields='shop_money' } <br>
        &lt;table width="4%" height="212" border="0" cellpadding="0" cellspacing="0" class="yangshi"&gt; <br>
        &lt;tr&gt; <br>
        &lt;td height="212" colspan="3" align="center"&gt; <br>
        &lt;a href="" /&gt;
<span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>channelid------是模型的id </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>addfields-------是自定义字段的名称 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>单独调用:{dede:field name=' ' /}</span>
                        </div>
                  <div class="nrwz">
                        <script>dy("nrwz");</script>
</div>
                        <div class="pageinfo">
                               
                        </div>
頁: [1]
查看完整版本: 织梦首页和列表页怎么调用自定义字段