航空论坛_航空翻译_民航英语翻译_飞行翻译

标题: 如何使织梦系统的文章标题突破30个字的限制(完整版) [打印本页]

作者: 航空    时间: 2011-2-9 20:13:07     标题: 如何使织梦系统的文章标题突破30个字的限制(完整版)

找到./include/inc_arcpart_view.php" \7 N1 J& O9 n) \2 Z; b

' [% B; i4 ^- K行291 :
# `) E+ N" V% k0 S3 z) T; D
/ S8 `- @3 j, i0 ~! zif($titlelen=="") $titlelen = 30;
# m" e" U; c+ T  h8 X2 a( n$ G6 e6 l8 J. O! E- H* o
修改为
  M, D* P& l0 h+ B' u. s  F/ M5 ?5 x$ F* u7 ^
if($titlelen=="") $titlelen = 60;  o- r  w% C6 G

* m% r9 J8 ^# t3 m& V================================& [9 X  u$ _* U8 x2 R+ B
9 s$ s: V% R, n7 x$ ~3 @4 i
./include/inc_arcpart_view.php/ z7 o: d* N2 o5 k
282行:+ [: }* ]9 V4 @/ E. h1 L
function GetArcList($typeid=0,$row=10,$col=1,$titlelen=30,$infolen=160,* S' w. W4 u" |
$imgwidth=120,$imgheight=90,$listtype="all",$orderby="default",$keyword="",8 o: n9 a* q' `( O) Y
$innertext="",$tablewidth="100",$arcid=0,$idlist="")
% M- B) a) ?/ f8 i7 ~. e6 c0 x9 U( _1 N; k+ M- r- x; R( J2 p+ G1 Q
1 Y# s- F2 n9 S/ ^3 _2 b/ J, I
将其中的$titlelen=30改为自己希望的长度。
9 D  Z0 v- z+ {' m8 B; B6 I: s( \( w4 F0 e8 `* y2 H
=====================================7 E5 Y9 }. B$ _: p$ A. S% w* ]% N

: \/ `9 r/ f$ W$ p; ?- M8 M! I后台文件
% }6 f& f2 q; R  M1 q. c& B, b% }* i. E
action_article_save.php6 X3 E& x+ W# W: I* w% `+ o: w/ K

* I7 d- a3 H" k7 ?/ V! K' \9 [action_article_eidt_save.php3 T0 Q2 D7 ]" y! S
+ T' B( y8 a' |/ H+ s

) A2 a6 p% }+ M6 V$title = cn_substr($title,60);
! u# J& q# T5 F' c- O' @: {0 J  m, ?5 F2 [! Q0 v
将其中的60改为自己希望的长度。6 N* U& {3 a: v  P) Y" h2 z
! {" `- `* k1 \# C2 Y
=================================6 m% {( d+ t- E* \- [/ c4 i3 f

. Q3 O$ T( b2 [) k- p' w1 P) b如果是用的采集功能的话,还得改一个文件action_co_export.php
" R0 t/ o- P+ e3 n& u大约在53行,找到4 W8 P' n$ X% |( `# M" I8 _8 u
if($title_sel=="0") $title = addslashes($row->title);
7 W: t. l4 H/ w4 V! Selse $title = cn_substr($fields[$title_sel],60);4 a: H! \8 A. s' h" Y
7 R7 U- l& x* A- O2 ^; y7 m$ [4 Q: M
将其中的60改成自己希望的数字!; {. ?% I6 w( V" H, U
, T; F+ B- J$ s& Q
=============================* `) b- s: Z3 b2 @0 \
! j+ e, u6 _2 h; K
数据库
% G7 i: o. w1 D' H% w: n/ ~5 L- l* {& _. t) [- a9 I' u+ [) v
同时要修改数据库中dede_archives数据表中的title字段,类型不变,将数字改为自己希望的长度。





欢迎光临 航空论坛_航空翻译_民航英语翻译_飞行翻译 (http://bbs.aero.cn/) Powered by Discuz! X2