織夢任意頁面調用{dede:field.content/}的方法


  • 過濾掉所有的html代碼,只顯示文字,具體的ID自己更改.

    代碼如下:

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

  • 不濾掉html代碼,后台怎么編輯,首頁就怎么顯示,圖片也可加載.

    代碼如下:

    {dede:sql sql='Select content from dede_arctype where id=1'} [field:content/] {/dede:sql}


  • 免責聲明!

    本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



     
    粵ICP備18138465號   © 2018-2025 CODEPRJ.COM