AL博客

AL博客分享个人学习心得,让小白也能学习SEO,学习SEO就是做好网络推广的第一步

dedeCMS调用代码关于TAG调用文章调用代码

2020-12-25 Alfreb24 SEO教程


dedeCMS调用代码关于TAG调用文章调用代码




{dede:include filename="body.htm"/}
文章链接[field:textlink/]= <a href='[field:arcurl/]'>[field:title/]</a>

栏目链接[field:typelink/] = <a href='[field:typeurl/]'>[field:typename/]</a>

图片链接[field:imglink /]= <a href='[field:arcurl/]'><img src='[field:picname/]' border='0' width='imgwidth' height='imgheight'></a>
 
<a href='[field:arcurl /]' title=' [field:title/]'><img _src="[field:litpic/]" alt="[field:title/]" width="" height="" /></a>      =       [field:imglink /]
<a href="[field:filename/]" title="[field:title/]">[field:title/]</a>  =   [field:textlink/]
[field:description function='cn_substr(@me,200)'/]      =     [field:info/]
[field:autoindex runphp='yes']@me=$GLOBALS['autoindex'];[/field:autoindex]  递增函数
 
<a href="{dede:type typeid='2'}[field:typelink /]{/dede:type}">{dede:type typeid='2'}[field:typename /]{/dede:type}</a>



TAG调用
最新{dede:tag row='60' sort='new'}<a href='[field:link/]' class='tagc[field:highlight /]'>[field:tag /]</a>{/dede:tag}
当月热门{dede:tag row='60' sort='month'}<a href='[field:link/]' class='tagc[field:highlight /]'>[field:tag /]</a>{/dede:tag}
随机{dede:tag row='100' sort='rand'}<a href='[field:link/]' class='tagc[field:highlight /]'>[field:tag /]</a>{/dede:tag}
 
文章调用
随机文章:{dede:arclist row='500' pagesize='4' titlelen='50' orderby='rand'}<li><a href="[field:arcurl/]" title="[field:title /]">[field:title /]</a></li>{/dede:arclist}


相关文章:  {dede:likearticle row='8' eregtype=all|tag|keyword}
 <li><span>[field:pubdate function="MyDate('Y-m-d',@me)"/]</span>·<a href="[field:arcurl/]"  title="[field:fulltitle/]" target="_blank">[field:title/]</a></li>

   {/dede:likearticle}  


推荐文章   

{dede:arclist flag='c' titlelen=42 row=6}

        [field:array runphp='yes']@me = (empty(@me['litpic']) ? "" : "<a href='{@me['arcurl']}' class='preview'><img src='{@me['litpic']}'/></a>"); [/field:array]
<a href="[field:arcurl/]"  title="[field:fulltitle/]">[field:title/]</a></p>
        [field:pubdate function="MyDate('Y-m-d',@me)"/]

{/dede:arclist}


热点文章:
{dede:arclist row=10 orderby=click}<li><a href="[field:arcurl/]">[field:title/]</a></li>{/dede:arclist}


SQL调用:
{dede:sql sql="SELECT * FROM ****_archives where title like '%公司%' and title like '%建设%' or title like '%企业%' and title like '%建设%' order by rand() limit 10 "}              <a href="[field:id runphp='yes'] $id=@me;@me='';$url=GetOneArchive($id);@me=$url['arcurl'];[/field:id]" title="[field:title/]">[field:title function=cn_substr(@me,54,0)/]</a>
[field:pubdate function=mydate('m-d',@me)/] {/dede:sql}



发表评论: