Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to realize the function of website paging in Chinese and English in Dreamweaver

Shulou Source: shulou.com Published: 2022-06-02 12:36:26 10月28日 Update

How to realize the Chinese and English paging function of the website in Dreamweaver? Many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can gain something.

1. Find include/arc.listview.class.php in the root directory of the website and open it with Dreamweaver. Find (about 45 lines) var $remoteDir; and add a new line below it, var $pagelang.

2. Continue to find (about 528 lines) $list_len = trim ($ctag- > GetAtt ("listsize")); add a new line below it $pagelang = trim ($ctag- > GetAtt ("pagelang"))

3. Find (about 531 lines)

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

Add under it

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

4. Modify (about 545 lines)

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

5. Modification

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

6. Modification

Return "1 page total". $this- > TotalResult. "record\ r\ n"

For

If ($pagelang=='cn') {return "1 page total". $this- > TotalResult. "record\ r\ n";} else {return "Total 1Page". $this- > TotalResult. "Records\ r\ n";}

Modify

Return "of 0 pages". $this- > TotalResult. "record\ r\ n"

For

If ($pagelang=='cn') {return "0 pages of". $this- > TotalResult. "record\ r\ n";} else {return "Total 0 Page". $this- > TotalResult. "Records\ r\ n";}

Modify

$maininfo = "total {$totalpage} pages". $this- > TotalResult. "Article\ r\ n"; for

7. According to the above method, modify the following to get the contents of the previous page, the home page, the next page and the last page.

Open the list template page. I'll take list_article_en.htm as an example, where list_article_en.htm is the English version of the list page template, while the Chinese version does not need to be modified.

Modify {dede:pagelist listsize='5'/} to {dede:pagelist pagelang='en' listsize='5'/}

The list page was regenerated successfully. However, there is another drawback is that although the full English pagination of the list page has been realized.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Website content template face page new line English help Chinese and English function solid clear successful imperfect no Chinese version home page place this article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Huawei macOS Xiaomi Microsoft