门户内容页导航不能指出当前所在栏目,即当前打开栏目不能正确添加".a"样式,通过程序摸索发现sourcemoduleportalportal_view.php中没有获取$navid。
参考sourcemoduleportalportal_list.php,我的修改如下:
在portal_view.php第45行下方加入
- $navid = 'mn_P'.$cat['topid'];
- foreach ($_G['setting']['navs'] as $navsvalue) {
- if($navsvalue['navid'] == $navid && $navsvalue['available'] && $navsvalue['level'] == 0) {
- $_G['mnid'] = $navid;
- break;
- }}
复制代码 |