zoukankan      html  css  js  c++  java
  • DEDE非内容页调用自定义字段使用方法

    今天弄网站,发现要实现一个功能就是在首页里调用DEDE自定义字段,但是看了很多的文章就是用SQL方式调用,有没有用DEDE自带的语句调用呢?研究了很久,是终在DEDE在帮助文档中找到相关资料,在此我就把经验分享出来供需要的人使用

      注:要获取附加表内容,必须符合两个条件

      1、指定 channelid 属性

      

      2、指定要获得的字段 addfields='字段1,字段' 每个字段用英文半角逗号分开

      如:

      {dede:arclist addfields='goumai,dianpu' row='8' channelid='1'}

      [field:goumai /] - [field:dianpu /]

      {/dede:arclist}

      这样就好了,把我用的代码贴到上面,调用的是商品。

      {dede:arclist typeid='45' row='8' imgwidth='105' imgheight='105' titlelen='16' addfields='trueprice,price' channelid='6' }

      市场价¥[field:price /]

      优惠价¥[field:trueprice /]

      {/dede:arclist}

  • 相关阅读:
    图匹配板子
    线性基
    Berlekamp-Massey algorithm
    组合/概率/形式幂级数/多项式/集合幂级数的题
    费用流 Dijkstra 原始对偶方法(primal-dual method)
    UVA-12304
    二项式系数
    卡特兰数
    多项式模板
    工具
  • 原文地址:https://www.cnblogs.com/cms100/p/3280735.html
Copyright © 2011-2022 走看看