织梦 s 不修改数据库s怎么实现中英栏目名 ,首先找到 include aglibchannel.lib.php 大约在第140行 。 $likeType .= $linkOkstr; 在这个之前加入 1 $dirList = split( / , $row [ typedir ]); 2 $dirName...
织梦dedecms不修改数据库dedecms怎么实现中英栏目名 ,首先找到 include aglibchannel.lib.php 大约在第140行 。
$likeType .= $linkOkstr;
在这个之前加入
1 |
$dirList = split( '/' , $row [ 'typedir' ]); |
2 |
$dirName = array_pop ( $dirList ); |
3 |
$linkOkstr = str_replace ( "~dirName~" , $dirName , $linkOkstr ); |
|
调用方法如下:
05 |
"cn" >[field:typename/]
|
06 |
"en" >[field:typedir runphp= 'yes' commet= "获得最后目录名,英文" ]
|
|
这种方式的弊端是您的栏目链接要规范,按照英文的方式命名才可以。
Pbootcms问题解决
请点击在线联系我们【点击咨询解决问题】 如果您有任何Pbootcms问题,我们将免费为您写解决教程!