dedecms中修改摘要字數長度的方法介紹,織夢文章
導讀:織夢文章織夢文章★dedecms中修改摘要字數長度的方法介紹★簡介:dedecms中修改摘要字數長度的方法介紹 本文介紹下,修改dedecms系統中摘要字數長度的方法,希望對大織夢模板網織夢的模板。
dedecms中修改摘要字數長度的方法介紹
本文介紹下,修改dedecms系統中摘要字數長度的方法,希望對大家有所幫助。 1,首先,修改表: dede_archives 字段 description varchar(600); 2,進入后臺,找到 系統-->系統基本參數--> 其它選項 自動摘要長度(0-250,0表示不啟用):600 3,測試,如果有問題需要分別修改 ①修改措施文件 dede /archives_add.php /archives_edit.php /article_add.php /article_edit.php 查找代碼: <span style="font-family: 'courier new', courier; font-size: 13px;">$title= cn_substrR($title,$cfg_title_maxlen); $shorttitle= cn_substrR($shorttitle,36);//大略標題字符數 $color = cn_substrR($color,7); $writer= cn_substrR($writer,20);//作者字符數 $source= cn_substrR($source,30);//文章來歷字符數 $description= cdede模板堂n_substrR($d織夢后臺模板escription,250);//摘要字符數 $keywords= trim(cn_substrR($keywords,30));//要害詞字符數 $filename = trim(cn_substrR($filename,40));//文件名字符數 if(!TestPurview('a_Check,a_AccCheck,a_MyCheck')) </span> 找到 $description = cn_substrR($description,250); 修改數字為想要顯示的摘要字符數www.genban.org 網站建設 如果需要修改產品文件的文檔摘要,則修改: dede 夢織模板 /product_add.php /product_edit.php 找到 <span style="font-family: 'courier new', courier; font-size: 13px;">$description = cn_substrR($description,250); </span> 修改cn_substrR中的數字為想要顯示的摘要字符數即可。 以上就是本節dedecms教程的全部內容了,希望可以幫助到大家。 相關織夢模板網織夢的模板。聲明: 本文由我的SEOUC技術文章主頁發布于:2023-07-20 ,文章dedecms中修改摘要字數長度的方法介紹,織夢文章主要講述長度,字數,織夢網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_31662.html