核心提示:第一步,include aglibchannelimg.lib.php文件,大約第77行左右,也就是這句下面$fields['text'] = str_replace(''','',$ctag-GetAtt('text'));下加上 $dsql= new DedeSql(false);//建…
itE-SPACE: normal; COLOR: rgb(34,34,34); WORD-SPACING: 0px; -webkit-text-stroke-width: 0px">第一步,include aglibchannelimg.lib.php文件,大約第77行左右,也就是這句下面$fields['text'] = str_replace("'","",$ctag->GetAtt('text'));下加上
$dsql= new DedeSql(false);//建立新連接
$rs = $dsql->GetOne("Select title from dede_archives where ID='".$refObj->ArcID."'"); //打開數(shù)據(jù)庫
$title=$rs["title"]; http://www.fan86.com //找到標(biāo)題值
第107行左右也就是這句下面$$dtp2->LoadSource($innerTmp);下加上
一句
$fields['title'] = str_replace("'",'',$title);
第二步,把 empletsdefaultrticle_image.htm中的
alt='[field:alttext /]'
換為:
alt='[field:title /]'
第三步,生成,更新一下html文檔,搞定
未經(jīng)允許不得轉(zhuǎn)載:445IT之家 » DEDECMS;把織夢dede圖集圖片alt換成標(biāo)題