Warning: Undefined array key "night" in /www/wwwroot/dhaomu.com/wp-content/themes/b2/header.php on line 18
首页>文档>PbootCMS>PbootCMS开发手册>PbootCMS开发手册之多语言/区域建站

PbootCMS开发手册之多语言/区域建站

pbootcms开源免费PHP建站系统开发手册之多语言/区域建站!熟悉PbootCMS手册是使用本程序开发模板的前提,虽然我们尽可能把所有标签做到简单到想哭,但是还是需要您静下心来好好看看!

标签作用:用于使用同一个后台建立多国语言网站或多区域网站

使用步骤

  • 在后台”系统管理>数据区域”添加相应的区域,具体参考默认区域;
  • 将多语言的模板放入模板目录,不同语言的模板均放在template目录下;
  • 在后台选择语言切换到不同语言,分别设置:站点信息(注意选择模板)、公司信息、栏目信息、添加内容等;
  • 在不同模板中添加多语言切换按钮。

多语言切换按钮

<a href="{pboot:lgpath}&lg=cn">切换中文</a>
<a href="{pboot:lgpath}&lg=en">切换英文</a>

请注意:PB2.0开始lg前面用&符号,之前老版本用?符号!

更多语言,类似方式添加即可。

如何判断当前语言并高亮?

在按钮上添加判断语句:

{pboot:if('{pboot:sitelanguage}'=='cn')}class="active"{/pboot:if}
0 条回复 A文章作者 M管理员

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914
----《》
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索