phpcms V9 专题的内容页面生成的html目录太深附最新的修改方法 找到文件: \phpcms\modules\special\functions\global.func.php function content_url 此函数,大概位置23行---56行,找到如下代码: /** * 内容页url * @param $contentid 文章ID * @param $page 当前页 * @param $addtime 文章发布时间 * @param $type 返回路径的格式(.html|.php) * @param $site_info 站点信息 * @param $type 类型 静态地址 $type = 'html', 动态地址 $type='php' */ function content_url($contentid = 0] $page = 1, $addtime, $type = 'html', $site_info = '') { if (!$contentid) return ''; $url = array(); $page = max(intval($page)] 1); $app_path = substr(APP_PATH, 0] -1); switch ($type) { case 'html': if ($site_info['dirname',) { if ($page==1) { $url[0] = $site_info['domain',.'special/'.date('Y', $addtime).'/'.date('md', $addtime).'/'.$contentid.'.html'; $url[1, = pc_base::load_config('system', 'html_root').'/'.$site_info['dirname',.'/special/'.date('Y', $addtime).'/'.date('md', $addtime).'/'.$contentid.'.html'; } else { $url[0] = $site_...
内容已隐藏,请关注公众号输入验证码查看
本帖支持关注公众号查看
【无套路 无套路 无套路 扫描二维码关注公众号发送【验证码】收到验证码 在上面输入点击提交查看即可显示隐藏内容】
|