好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

在任意页面调用栏目内容标签{dede:field.content/}

在任意页面调用栏目内容标签{dede:field.content/}

{dede:field.content/} 这个标签系统只支持在栏目模板里调用,如果想要在任意页面调用这个内容可以使用下面的方法.

1、过滤掉所有的html代码,只显示文字,具体的ID自己更改.

{dede:sql sql= 'Select content from detest_arctype where id=1' }        [field:content  function = 'cn_substr(html2text(@me),800)' /]  {/dede:sql}... 

2、不滤掉html代码,后台怎么编辑,首页就怎么显示,图片也可加载.

{dede:sql sql= 'Select content from detest_arctype where id=1' }            [field:content/]  {/dede:sql}   //phpfensi.com  

PS: 意思是调用系统中的arctype这个表.

因为每个人安装DEDE的时候,表名的前辍不全都是用默认dede_,用这个标签不管系统的前辍是什么,都可以识别,是织梦的内置函数.

查看更多关于在任意页面调用栏目内容标签{dede:field.content/}的详细内容...

  阅读:66次