In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
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.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.