==================================================================

destoon各栏目调用汇总

==================================================================

根目录、模板目录和样式目录:

{DT_PATH}  = http://localhost/
{DT_SKIN}  = http://localhost/skin/default/

导入头脚:

{template 'header'}
{template 'footer'}

对应模块首页:

{$MODULE[$moduleid][linkurl]} //注:$moduleid表示对应模块的ID号

对应模块列表页:

{$MODULE[$moduleid][linkurl]}list.php?catid=$catid  //注:$catid表示调用的分类的ID号

发布某模块信息:

{$MODULE[2][linkurl]}my.php?mid=$moduleid&action=add

调用广告:

{ad(27)}  //注:27表示广告位为27的广告

时间函数:

{date('Y-m-d',$t[addtime])} // 注:addtime是添加时间,可以换别的

控制字符数:

{dsubstr($t[company],30)}  //注:company是公司名称字段,可以换别的。30表示字符数为15个

版权信息:

{$DT[copyright]} 

客服电话:

{$DT[telephone]}

ICP备案号:

{$DT[icpno]}

本月:

addtime>$today_endtime-30*86400

供应:

(level=1)
{php $tags = tag("moduleid=5&table=sell&length=30&condition=status=3 and catid=? and level=?&pagesize=10&order=addtime desc&template=null")}

求购:

(level=1)
{php $tags = tag("moduleid=6&table=buy&length=30&condition=status=3 and catid=? and level=?&pagesize=10&order=addtime desc&template=null")}

行情:

(level=1,2,3,4,5)
{php $tags = tag("moduleid=7&table=quote&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

公司:

{php $tags = tag("moduleid=4&table=company&condition=groupid>5&pagesize=10&order=fromtime desc&template=null")}

展会:

(level=1)
{php $tags = tag("moduleid=8&table=exhibit&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

资讯:

(level=1,2,3,4,5)
{php $tags = tag("moduleid=21&table=article_21&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

招商:

(level=1)
{php $tags = tag("moduleid=22&table=info_22&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

品牌:

(level=1)
{php $tags = tag("moduleid=13&table=brand&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

人才:

{php $tags = tag("moduleid=9&table=job&length=30&condition=status=3 and catid=?&pagesize=10&order=addtime desc&template=null")}
{php $tags = tag("moduleid=9&table=resume&length=30&condition=status=3 and catid=?&pagesize=10&order=addtime desc&template=null")}

知道:

(level=1)
{php $tags = tag("moduleid=10&table=know&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

专题

(level=1,2,3,4,5)
{php $tags = tag("moduleid=11&table=special&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

图库:

(level=1,2,3,4,5)
{php $tags = tag("moduleid=12&table=photo&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

视频:

(level=1)
{php $tags = tag("moduleid=14&table=video&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

下载:

(level=1)
{php $tags = tag("moduleid=15&table=down&length=30&condition=status=3 and catid=? and thumb<>'' and level=?&pagesize=10&order=addtime desc&template=null")}

论坛:

{php $tags=tag("table=discuz.cdb_threads&prefix=&condition=status=0 and fid=?&order=dateline desc&pagesize=10&target=_blank&template=null")}

调用模块内容,资讯模块举例:

{php $tagss = tag("moduleid=21&table=article_data_21&condition=itemid=".$t[itemid]."&template=null")}

调用分类,资讯模块举例:

{php $tagss = tag("moduleid=21&table=category&condition=moduleid=21 and parentid=?&pagesize=10&order=catid desc&template=null")}

网站标题:

{$seo_title}

关键字:

{$head_keywords}

网页描述:

{$head_description}

会员升级:

{$MODULE[2][linkurl]}grade.php

收藏本页:

<script type="text/javascript">addFav('收藏本页');</script>

设为首页:

<a href='#' onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.webjx.com');">设为首页</a>

WAP浏览:

{extendurl('wap')}

RSS订阅:

{extendurl('feed')}

商务中心:

{$MODULE[2][linkurl]}

发布信息:

{$MODULE[2][linkurl]}{$DT[file_my]}

排名推广:

{extendurl('spread')}

网站地图:

{DT_PATH}sitemap/

友情链接:

{extendurl('link')}index.php?typeid=1

申请友情链接:

{extendurl('link')}{rewrite('index.php?action=reg')}

调用友情链接:

{php $tags = tag("table=link&length=14&condition=status=3 and typeid=1&pagesize=40&order=addtime desc&template=null")}

网站留言:

{extendurl('guestbook')}

广告服务:

{extendurl('ad')}

版权隐私、使用协议、联系方式、关于我们

{tag("table=webpage&condition=item=1&order=listorder desc,itemid desc&template=list-webpage")}

Copyright.html、agreement.html、contact.html、about.html

地区:

{$AREA[1][areaname]}

投票:

{extendurl('vote')}

登录框模板:

{if $DT[page_login]}{template 'user', 'chip'}{/if}

公告栏:

{extendurl('announce')}

分类模板:

{php $mid=5;}{template 'catalog' 'chip'}

相关评论模板:

{template 'comment', 'chip'}

联系方式模板:

{template 'contact', 'chip'}

留言加盟:

<iframe src="{$MOD[linkurl]}message.php?itemid={$itemid}" name="destoon_message" id="destoon_message"  scrolling="no" frameborder="0"></iframe>

读缓存:

{php $CATEGORY = cache_read('category-21.php');}
{$MODULE[21][linkurl]}{$CATEGORY[5][linkurl]}

<meta http-equiv="x-ua-compatible" content="ie=7"/>

调用栏目名

{php $tags = tag("moduleid=21&table=article_21&length=32 &condition=status=3 &pagesize=11&order=addtime desc&template=null")}    {loop $tags $t}    <li><span class="rq">{date('Y-m-d',$t[addtime])}</span><span class="catn"> {php $tagss = tag("moduleid=21&table=category&condition=moduleid=21 and catid=".$t[catid]."&template=null")}     {loop $tagss $tt}     【<a href="{$tt[linkurl]}" target="_blank">{dsubstr($tt[catname],12)}</a>】     {/loop} </span><a href="{$t[linkurl]}" target="_blank">{$t[title]}</a></li>    {/loop}

调用大分类中的所有

{php $tags = tag("moduleid=26&table=category&condition=moduleid=26 and catid=137&template=null")}{loop $tags $t}{php $tagss = tag("moduleid=26&length=26&condition=status=3 and level=4 and catid IN(".$t[arrchildid].")&pagesize=4&order=addtime desc&template=null")}{loop $tagss $ts}<li>·<a href="{$ts[linkurl]}" target="_blank">{$ts[title]}</a></li>    {/loop}{/loop}

产品图片怎么调用middle.jpg中大的图?

<img src="{str_replace('thumb', 'middle', $t[thumb])}" width="{$width}" height="{$height}" alt="{$t[alt]}"/>

转载于:https://www.cnblogs.com/vip-deng-vip/p/7561427.html

destoon各栏目调用汇总相关推荐

  1. dede栏目调用汇总

    1.1 首页调用方式 A.使用   {dede:global.cfg_cmsurl/}/   调用,放在a标签中.如下图: <a href="{dede:global.cfg_cmsu ...

  2. 织梦栏目mysql调用_织梦dedecms栏目调用标签,包括SQL语句调用方法

    {dede:channelartlist typeid='栏目ID' row='条数'} {dede:sql sql='Select * from dede_arctype where reid=~i ...

  3. phpcmsV9子栏目调用其父栏目名称、URL、catid等信息 - 方法总结

    phpcmsV9子栏目调用其父栏目名称.URL.catid等信息 - 方法总结 phpcmsV9子栏目列表页.内容页调用该栏目的父栏目和顶级栏目的名称.url链接.catid-id等信息的方法.具体参 ...

  4. phpcmsV9调用顶级父栏目的所有子栏目 - 调用总结

    1. 都有哪些调用场景? 列表页 内容页 子栏目首页 2. 效果图: 3. 方法代码如下: <article><h1 class="t_nav"> < ...

  5. 织梦dedecms TAG标签调用汇总

    前言 TAG标签是一种由您自己定义的,比分类更准确.更具体,可以概括文章主要内容的关键词,合理的运用TAG标签,可以使你发表的文章更容易被搜索到. 很多网站的首页.列表页和文章页调用的TAG关键词是带 ...

  6. destoon 调用汇总

    根目录.模板目录和样式目录: {DT_PATH} {DT_SKIN} 导入头脚: {template 'header'} {template 'footer'} 对应模块首页: {$MODULE[$m ...

  7. destoon使用 标签调用

    文件位置 php集成环境中新建项目文件夹demo,destoon默认文件复制进项目文件 安装 127.0.0.1/demo/install 静态文件(img/css/js):demo->skin ...

  8. phpcms调用栏目描述_phpcms标签整理_当前栏目调用

    1.phpcms v9 所有当前栏目信息标签 下面做总结,方便大家找到在内容页想调用的东西 当前栏目id: {$catid} 当前栏目名: {$CATEGORYS[$catid][catname]} ...

  9. php三级栏目调用,织梦当前栏目调用二级、三级栏目且栏目高亮解决方法

    在处理企业站的时候,经常发现要调用二三级栏目栏目,且需要高亮显示,具体实现方法如下. 1.打开 \include\taglib\channelartlist.lib.php 找到 $tpsql = & ...

最新文章

  1. Android实例开发中如何创建第一个项目(android studio)
  2. 【Vegas原创】本地sys登录,ORA-01031: insufficient privileges的解决方法
  3. 电商前端设计-详情页
  4. 干货 | 携程数据库发布系统演进之路
  5. php输出的数组如何存入表单,jquery:如何在jquery中将数组附加到表单请求并将其发送到php...
  6. mysql 查看个人版,MySQL系列-权限管理
  7. Ubuntu 18.04.1 搭建Java环境和HelloWorld 1
  8. php时间日期函数转字符串,php自定义时间转换函数示例
  9. POJ4001 HDU4121 UVA1589 UVALive5829 Xiangqi【模拟+回溯】
  10. python画直方图-从零开始学Python【13】--matplotlib(直方图)
  11. 【MySQL】外键踩坑集
  12. HDU 2545 树上战争(并查集)
  13. 密码学-代数数论基本知识
  14. 我对秒杀在技术性上的一些看法
  15. photoshop ps 替换图片文字
  16. 编程学习应用 Growth 发布 3.0,在碎片时间里练习
  17. 有效的数独 C++算法 leetcode36
  18. 聊一聊不同技术栈中hashmap扩容机制
  19. Linux系统的grub.cfg文件损坏修复
  20. 【mysql】mysql 常用建表语句

热门文章

  1. C - 开门人和关门人
  2. ZZULIOJ-1379: A+B
  3. 毁掉一个人最快的方式,就是教他“走捷径”
  4. maven项目本地手动导包
  5. BUUCTF-WEB
  6. caps lock_如何在Windows 7、8、10或Vista中禁用Caps Lock键
  7. 简单聊聊Python中的wraps修饰器
  8. 总结了几项Python爬虫兼职要点
  9. opencv: 颜色空间转换(cv2.cvtColor) 探究(图示+源码)
  10. 一个小巧好用的个人知识管理系统-TiddlyWiki.