怎么在Dreamweaver中實(shí)現(xiàn)網(wǎng)站中英文分頁(yè)功能

怎么在Dreamweaver中實(shí)現(xiàn)網(wǎng)站中英文分頁(yè)功能?很多新手對(duì)此不是很清楚,為了幫助大家解決這個(gè)難題,下面小編將為大家詳細(xì)講解,有這方面需求的人可以來(lái)學(xué)習(xí)下,希望你能有所收獲。

網(wǎng)站建設(shè)、成都網(wǎng)站建設(shè)的關(guān)注點(diǎn)不是能為您做些什么網(wǎng)站,而是怎么做網(wǎng)站,有沒(méi)有做好網(wǎng)站,給成都創(chuàng)新互聯(lián)一個(gè)展示的機(jī)會(huì)來(lái)證明自己,這并不會(huì)花費(fèi)您太多時(shí)間,或許會(huì)給您帶來(lái)新的靈感和驚喜。面向用戶(hù)友好,注重用戶(hù)體驗(yàn),一切以用戶(hù)為中心。

1、網(wǎng)站根目錄找到include/arc.listview.class.php用Dreamweaver打開(kāi),找到(約45行)var $remoteDir;在其下面加上一個(gè)新行var $pagelang;

怎么在Dreamweaver中實(shí)現(xiàn)網(wǎng)站中英文分頁(yè)功能

2、繼續(xù)找到(約528行)$list_len = trim($ctag->GetAtt("listsize"));在其下面加上一個(gè)新行$pagelang = trim($ctag->GetAtt("pagelang"));

怎么在Dreamweaver中實(shí)現(xiàn)網(wǎng)站中英文分頁(yè)功能

3、找到(約531行)

if($list_len=="")
                {
                    $list_len = 3;
                }

在其下面增加

if($pagelang=="")
{
$pagelang = 'cn';
}

怎么在Dreamweaver中實(shí)現(xiàn)網(wǎng)站中英文分頁(yè)功能

4、修改(約545行)

$this->dtp->Assign($tagid,$this->GetPageListST($list_len,$listitem));為$this->dtp->Assign($tagid,$this->GetPageListST($list_len,$listitem,$pagelang));

怎么在Dreamweaver中實(shí)現(xiàn)網(wǎng)站中英文分頁(yè)功能

5、修改

function GetPageListST($list_len,$listitem="index,end,pre,next,pageno")為function GetPageListST($list_len,$listitem="index,end,pre,next,pageno",$pagelang='cn')

怎么在Dreamweaver中實(shí)現(xiàn)網(wǎng)站中英文分頁(yè)功能

6、修改

return "<li><span class=\"pageinfo\">共 <strong>1</strong>頁(yè)<strong>".$this->TotalResult."</strong>條記錄</span></li>\r\n";

if($pagelang=='cn') {
return "<li><span class=\"pageinfo\">共 <strong>1</strong>頁(yè)<strong>".$this->TotalResult."</strong> 條記錄</span></li>\r\n";
}
else
{
return "<li><span class=\"pageinfo\">Total <strong>1</strong>Page<strong>&nbsp;".$this->TotalResult."</strong> Records</span></li>\r\n";
}

修改

return "<li><span class=\"pageinfo\">共 <strong>0</strong>頁(yè)<strong>".$this->TotalResult."</strong>條記錄</span></li>\r\n";

if($pagelang=='cn') {
return "<li><span class=\"pageinfo\">共 <strong>0</strong>頁(yè)<strong>".$this->TotalResult."</strong>條記錄</span></li>\r\n";
}
else
{
return "<li><span class=\"pageinfo\">Total <strong>0</strong> Page <strong>&nbsp;".$this->TotalResult."</strong> Records</span></li>\r\n";
}

修改

$maininfo = "<li><span class=\"pageinfo\">共 <strong>{$totalpage}</strong>頁(yè)<strong>".$this->TotalResult."</strong>條</span></li>\r\n";為

怎么在Dreamweaver中實(shí)現(xiàn)網(wǎng)站中英文分頁(yè)功能

怎么在Dreamweaver中實(shí)現(xiàn)網(wǎng)站中英文分頁(yè)功能

怎么在Dreamweaver中實(shí)現(xiàn)網(wǎng)站中英文分頁(yè)功能

7、依照上面的方法,依次修改下面的獲取上一頁(yè)、主頁(yè)、下一頁(yè)、末頁(yè)的內(nèi)容。

打開(kāi)列表模板頁(yè)面,我這以list_article_en.htm為例,其中l(wèi)ist_article_en.htm為英文版的列表頁(yè)面模板,中文版的可以不用修改

修改{dede:pagelist listsize='5'/}為{dede:pagelist pagelang='en' listsize='5'/}

重新生成列表頁(yè)成功。不過(guò)還有一點(diǎn)美中不足的地方是雖然已經(jīng)實(shí)現(xiàn)了列表頁(yè)的全英文分頁(yè)了

怎么在Dreamweaver中實(shí)現(xiàn)網(wǎng)站中英文分頁(yè)功能

看完上述內(nèi)容是否對(duì)您有幫助呢?如果還想對(duì)相關(guān)知識(shí)有進(jìn)一步的了解或閱讀更多相關(guān)文章,請(qǐng)關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,感謝您對(duì)創(chuàng)新互聯(lián)的支持。

文章標(biāo)題:怎么在Dreamweaver中實(shí)現(xiàn)網(wǎng)站中英文分頁(yè)功能
分享地址:http://muchs.cn/article24/geppje.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供手機(jī)網(wǎng)站建設(shè)、自適應(yīng)網(wǎng)站、網(wǎng)站改版、微信公眾號(hào)動(dòng)態(tài)網(wǎng)站、品牌網(wǎng)站制作

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

網(wǎng)站建設(shè)網(wǎng)站維護(hù)公司