dedecms标签快速

///////////////////////////////////////////头部

 

<title>{dede:global.cfg_webname/}</title>

<meta name="description" content="{dede:global.cfg_description/}" />

<meta name="keywords" content="{dede:global.cfg_keywords/}" />

 

///////////////////////////////////////////css图片路径

 

{dede:global.cfg_templeturl/}/default/css/

 

///////////////////////////////////////////头部底部调用模版

 

{dede:include filename="header.htm"/}

 

{dede:include filename="footer.htm"/}

 

///////////////////////////////////////////菜单调用标签

 

{dede:channel get='index'}<li class="frist"><a href="[field:typeurl/]">[field:lang.indexname/]</a></li>{/dede:channel}

 

{dede:channel type='top'}<li><a href='[field:typeurl/]'>[field:typename/]</a></li> {/dede:channel}

 

 

///////////////////////////////////////////搜索调用标签

 

<form id="search" class="fRight" action="{dede:global.cfg_phpurl/}/search.php" name="formsearch">

    <input type='hidden' name='lang' value='{dede:handlang/}' />

    <input name='keyword' type='text' class="text" />

    <button name="searchbt" type="submit">&nbsp;</button>

 </form>

 

///////////////////////////////////////////访问页面

 

/plus/list.php?tid=11

 

 

///////////////////////////////////////////首页调用产品类

 

{dede:channel type='son' typeid='4' row='5'}

  <li> <a  href='[field:typeurl/]'>[field:typename/]</a></li>

{/dede:channel}

 

 

///////////////////////////////////////////首页调用公司简介

 

 

{dede:sql sql="select * from wanhao_arctype where id=2"}

 [field:typename/]<!--这个是栏目名称-->

[field:content function=cn_substr(Html2Text(@me),400)/] <!--截取部分文字作为简介--> 

{/dede:sql}

      

///////////////////////////////////////////首页调用产品

 

 {dede:arclist channelid='6' flag='c' row='5' } 

 <li><a  href="[field:arcurl/]"><img src="[field:litpic/]">[field:title/]</a></li>

{/dede:arclist}

 

imgwidth='143' imgheight='106'

 

///////////////////////////////////////////首页新闻

 

 {dede:arclist titlelen='40' row='5' typeid=3 flag='c' }

             <li><span>[field:pubdate function="MyDate('m-d',@me)"/]</span><a  href="[field:arcurl /]">[field:title /]</a></li>

                 {/dede:arclist}

 

///////////////////////////////////////////内容页封面页

 

<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>

<meta name="keywords" content="{dede:field.keywords /}" />

<meta name="description" content="{dede:field.description function='html2text(@me)'/}" />

 

{dede:global.cfg_templeturl/}/default/css/

 

{dede:include filename="header.htm"/}

 

{dede:include filename="footer.htm"/}

 

{dede:field.title/}  {dede:field.position/}

 

///////////////////////////////////////////内容类别调用

 

    {dede:channel type='son' typeid='2'}

       <li> <a  href='[field:typeurl/]'>[field:typename/]</a></li>

      {/dede:channel}

 

 

///////////////////////////////////////////文章类别调用

 

 {dede:list pagesize='8' listtype='text'}

       <li><a href="[field:arcurl/]"><span style="float:right;">[field:pubdate function="GetDateMK(@me)"/]</span><span style="float:left;">[field:title/]</span></a> </li>

{/dede:list} 

 

  {dede:list pagesize='8' listtype='text'}

            <li><a href='[field:arcurl/]'>[field:title/]</a><span class="aOrange mL10">[field:pubdate function="GetDateMK(@me)"/]</span>

              <p class="clear"> [field:description function='cn_substr(@me,160)'/]...</p>

            </li>

          {/dede:list} 

///////////////////////////////////////////文章分页调用

 

{dede:pagelist listsize='5'/}

 

///////////////////////////////////////////文章内容页

 

{dede:channel type='son' typeid='2'}

       <li> <a  href='[field:typeurl/]'>[field:typename/]</a></li>

      {/dede:channel}

 

{dede:field.title/}

 {dede:field.body/}

 

///////////////////////////////////////////产品列表页

 {dede:include filename='header.htm'/}

 

 {dede:include filename='footer.htm'/}

 

 

///////////////////////////////////////////产品列表页

{dede:channel type='son' typeid='2'}

       <li> <a  href='[field:typeurl/]'>[field:typename/]</a></li>

      {/dede:channel}

 

{dede:pagelist listsize='5'/}

///////////////////////////////////////////产品列表页

  {dede:list pagesize='16'  type='image.' orderby='weight' imgwidth='133' imheight='100'}

   <li> <a href="[field:arcurl/]" >[field:image/] [field:title/]</a>  </li>

           {/dede:list}

{dede:pagelist listsize='5'/}

 

////////////////////////////////////

  {dede:channelartlist typeid='15,18,21'}

        

    <div>

        <span><a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a></span>

        {dede:channel type='son' noself='yes'}

        <a href="[field:typelink/]">[field:typename/]</a>

        {/dede:channel}

  </div>

    

  {/dede:channelartlist}

 

///////////////////////////////////////////产品内容页

<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>

<meta name="keywords" content="{dede:field.keywords /}" />

<meta name="description" content="{dede:field.description function='html2text(@me)'/}" />

原文地址:https://www.cnblogs.com/onesky/p/3487238.html