ITPub博客

首页 > 架构设计 > 基础设施 > html中的基本织梦标签用方

html中的基本织梦标签用方

原创 基础设施 作者:zrghs 时间:2020-12-17 15:50:44 3 删除 编辑

{dede:global.cfg_webname/}调用标题
{dede:global.cfg_description/}调用描术
{dede:global.cfg_keywords/}关键词
{dede:include filename="head.htm"/}
幻灯片调用
{dede:myppt typeid='1' row='3'}
<div class="item" style="background:url([field:pic/]) no-repeat center center;background-size:cover;"> </div>
[field:url/]
[field:pic/]
[field:title/]    
<p class="item[field:global name=autoindex runphp=yes](@me==1)? @me=' active':@me='';[/field:global]">
</div>
{/dede:myppt}
调用频道下列表
{dede:channelartlist typeid='1,1'}
<h3>{dede:field name='typename'/}</h3>频道名
<p>{dede:field name='typenameen'/}</p>频道英文名
 {dede:channel type='son'}调用频道下栏目名
<li><a href="[field:typeurl/]">[field:typename/]</a></li>
{/dede:channel}
 {dede:arclist limit='1,6' titlelen='50' orderby='pubdate'} 调用频道下的文章列表
<li><a href="http://nmgcf.zrghs.com">
<div class="img"><img src="[field:picname/]"/><span></span></div>
<p>[field:title/]</p>
</a></li>
{/dede:arclist}
 {/dede:channelartlist}


{dede:sql sql='Select content from dede_arctype where id='46'}
[field:content function='cn_substr(html2text(@me),500)'/]...
{/dede:sql}调某个栏目的内容

调用频道下的列表时间描述
{dede:channelartlist typeid='8,8'}
{dede:arclist limit='0,1' titlelen='50' orderby='pubdate'}           
[field:pubdate function="MyDate('Y-m-d',@me)"/]时间
<a href="[field:arcurl/]">[field:title/]</a>标题
<p>[field:description function="cn_substr(@me,200)"/]...</p>描述
{/dede:arclist}
 {dede:arclist limit='1,3' titlelen='50' orderby='pubdate'}
<a href="[field:arcurl/]">[field:title/]</a>
<span>[field:pubdate function="MyDate('Y',@me)"/]</span>[field:pubdate function="MyDate('m-d',@me)"/]</div>
<p>[field:description function="cn_substr(@me,100)"/]...</p>
{/dede:arclist}
{/dede:channelartlist}

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69990906/viewspace-2743100/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2020-12-16

  • 博文量
    29
  • 访问量
    15633