QQ咨询 官方微信

添加微信好友

官方小程序

百度小程序

微信小程序

头条小程序

关于我们

PHPCMS

phpcms v9添加子级栏目后,父栏目无法添加和调用内容问题

 shitouadmin  2023-09-21 15:09:05
一、设置子级栏目,父栏目无法添加内容问题
对于phpcms v9 中存在父栏目下有子栏目,则父栏目无法编辑内容的问题,大家一定不陌生,那么我们说一下解决方法。
1.首先第一步:我们要找到 phpcm\modules\content\content.php的文件。大约在488行找到
  1. $strs2 = "<span class='folder'>\$catname</span>"; 
2.第二步:将找到的$strs2 = "<span class='folder'>\$catname</span>";修改为
  1. $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行找到
  1. $r['disabled'] = $r['child'] ? 'disabled' : ''
注视掉它保存就行了。
如://    $r['disabled'] = $r['child'] ? 'disabled' : '';

二、前端调用问题
找到:\phpcms\modules\content\classes\content_tag.class.php大概45,46行,以及69行,70行找到代码:
  1. pos = strpos($catids_str,',')+1; 
  2. $catids_str = substr($catids_str, $pos); 
直接删掉即可。



¥ 打赏
×
如果您觉得文章帮助了您就打赏一下吧
非常感谢你的打赏,我们将继续分享更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫打赏

微信扫一扫打赏

本文《phpcms v9添加子级栏目后,父栏目无法添加和调用内容问题》发布于石头博客文章,作者:shitouadmin,如若转载,请注明出处:https://www.pweb123.com/cms/phpcms/981.html,否则禁止转载,谢谢配合!

文章点评

我来说两句 已有0条评论
点击图片更换

添加微信好友

添加微信好友

微信小程序

百度小程序