單頁作為父欄目后臺無法編輯欄目內(nèi)容的解決方
文章來源:未知??????
訪問次數(shù):
pc團隊對單頁的理解,真的讓我蛋疼,單頁下面有了子欄目,單頁就無法編輯內(nèi)容,而且導(dǎo)航顯示二級導(dǎo)航的時候還要依賴這個無法編輯內(nèi)容的頂級欄目!?。?,這是什么怪物!無辦法,自己改改代碼吧!
1.打開phpcms/modules/content/content.php
2.找到代碼:
將
-
$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' onclick='open_list(this)'>\$catname</a></span>";
然后保存.
3.依然在文件夾phpcms/modules/content下,打開create_html.php,鼠標(biāo)大概定義到178行
找到
-
$r['disabled'] = $r['child'] ? 'disabled' : '';
將這一行注銷掉。