对于phpcms v9 中存在父栏目下有子栏目,则父栏目无法编辑内容的问题,大家一定不陌生,那么我们说一下解决方法。
1.首先第一步:我们要找到 phpcm\modules\content\content.php的文件。大约在488行找到
2.第二步:将找到的$strs2 = "<span class='folder'>\$catname</span>";修改为
- $strs2 = "<span class='folder'>\$catname</span>";
并且进行保存。
- $strs2="<span class='folder'>\$add_icon<a href='?m=content&c=content&a=\$type&menuid=".$_GET['menuid']."&catid=\$catid' target='right'οnclick='open_list(this)'>\$catname</a></span>";
3.第三步:我们要找到 phpcm\modules\content\creat_html.php的文件。大约在178行找到
注视掉它保存就行了。
- $r['disabled'] = $r['child'] ? 'disabled' : '';
如:// $r['disabled'] = $r['child'] ? 'disabled' : '';
二、前端调用问题
找到:\phpcms\modules\content\classes\content_tag.class.php大概45,46行,以及69行,70行找到代码:
直接删掉即可。
- pos = strpos($catids_str,',')+1;
- $catids_str = substr($catids_str, $pos);
文章点评