我的知识记录

pbootcms面包屑英文首页换文字默认的中文如何替换成英文

pbootcms 面包屑 英文 首页换文字 默认的中文如何替换成英文


该系统的标签{pboot:position}是面包屑标签。

可以通过修改参数修改部分的内容,如:{pboot:position indextext='Home'}。


操作:通过查询  “parserPositionLabel”  或者  “// CMS当前位置标签解析”  找到对应的代码,将中文修改成英文或其他语言文字

首页:

路径:/apps/home/controller/IndexController.php

代码大约在224行。

1$content $this->parser->parserPositionLabel($content, - 1, '首页', SITE_INDEX_DIR . '/'); // CMS当前位置标签解析

  

搜索:

路径:/apps/home/controller/SearchController.php

代码大约在39行。

1$content $this->parser->parserPositionLabel($content, 0, '搜索', Url::home('search')); // CMS当前位置标签解析

  

我的评论:

路径:/apps/home/controller/CommentController.php

代码大约在124行。

1$content $this->parser->parserPositionLabel($content, 0, '我的评论', Url::home('comment/my')); // CMS当前位置标签解析

  

会员中心,登录,注册,资料修改:

路径:/apps/home/controller/MemberController.php

代码大约在102,254,273,382行。

1234567$content $this->parser->parserPositionLabel($content, 0, '会员登录', Url::home('member/login')); // CMS当前位置标签解析 $content $this->parser->parserPositionLabel($content, 0, '会员注册', Url::home('member/register')); // CMS当前位置标签解析 $content $this->parser->parserPositionLabel($content, 0, '个人中心', Url::home('member/ucenter')); // CMS当前位置标签解析 $content $this->parser->parserPositionLabel($content, 0, '资料修改', Url::home('member/umodify')); // CMS当前位置标签解析

  

pbootcms面包屑英文首页换文字默认的中文如何替换成英文

标签:

更新时间:2025-12-07 19:22:48

上一篇:pbnootcms栏目设置的注意事项否则会造成点击下一页进入另外一个栏目页

下一篇:pbootcms判断当天文章如果是进行操作