首页调用公司简介的代码:
{dede:sql sql='Select content,substring(content,1,300) as content from dede_arctype where id=1'}[field:content function='html2text(@me)'/]{/dede:sql}
你需要修改的地方:substring(content,1,300)和id=1。
首页调用公司简介的代码:
{dede:sql sql='Select content,substring(content,1,300) as content from dede_arctype where id=1'}[field:content function='html2text(@me)'/]{/dede:sql}
你需要修改的地方:substring(content,1,300)和id=1。
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。