單頁(yè)作為父欄目后臺(tái)無(wú)法編輯欄目?jī)?nèi)容的解決方
文章來(lái)源:未知??????
訪問(wèn)次數(shù):
pc團(tuán)隊(duì)對(duì)單頁(yè)的理解,真的讓我蛋疼,單頁(yè)下面有了子欄目,單頁(yè)就無(wú)法編輯內(nèi)容,而且導(dǎo)航顯示二級(jí)導(dǎo)航的時(shí)候還要依賴這個(gè)無(wú)法編輯內(nèi)容的頂級(jí)欄目?。?!,這是什么怪物!無(wú)辦法,自己改改代碼吧!
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' : '';
將這一行注銷掉。