关关10.5及后续版本对杰奇1.8的支持问题
关关10.5增加了对杰奇1.8的拼音分类的支持。从杰奇1.8开始,杰奇支持使用 {?$sortcode?} 标签来调用分类的拼音名称,从而达到分类拼音化的目的,但是无论是在关关,还是杰奇1.8程序本身,对此标签都支持不够完善。10.5开始,关关将全面支持此标签的使用,所以,现在在你的目录和内容页,你可以使用<a href="{?$sortcode?}">{?$sort?}</a>来返回你的分类了。如果不想生成静态,只是使用伪静态。在杰奇1.8程序中,如果需要在目录和内容页支持此标签,需要修改 modules/article/include/funarticle.php增加以下一行 $ret['sortcode'] = isset($jieqiSort['article'][$ret['sortid']]['code']) ? $jieqiSort['article'][$ret['sortid']]['code'] : '';就可以了。另外,最重要的事情来了,请修改你的sort.php为以下格式<?php$jieqiSort['article'] = array('layer' => '0', 'code' => 'xuanhuan', 'caption' => '玄幻魔法', 'shortname' => '玄幻', 'description'=>'', 'imgurl' => '', 'publish' => '1');
$jieqiSort['article'] = array('layer' => '0', 'code' => 'wuxia', 'caption' => '武侠修真', 'shortname' => '武侠', 'description'=>'', 'imgurl' => '', 'publish' => '1');
$jieqiSort['article'] = array('layer' => '0', 'code' => 'dushi', 'caption' => '都市言情', 'shortname' => '都市', 'description'=>'', 'imgurl' => '', 'publish' => '1');
$jieqiSort['article'] = array('layer' => '0', 'code' => 'lishi', 'caption' => '历史军事', 'shortname' => '历史', 'description'=>'', 'imgurl' => '', 'publish' => '1');
$jieqiSort['article'] = array('layer' => '0', 'code' => 'zhentan', 'caption' => '侦探推理', 'shortname' => '侦探', 'description'=>'', 'imgurl' => '', 'publish' => '1');
$jieqiSort['article'] = array('layer' => '0', 'code' => 'wangyou', 'caption' => '网游动漫', 'shortname' => '网游', 'description'=>'', 'imgurl' => '', 'publish' => '1');
$jieqiSort['article'] = array('layer' => '0', 'code' => 'kehuan', 'caption' => '科幻小说', 'shortname' => '科幻', 'description'=>'', 'imgurl' => '', 'publish' => '1');
$jieqiSort['article'] = array('layer' => '0', 'code' => 'kongbu', 'caption' => '恐怖灵异', 'shortname' => '恐怖', 'description'=>'', 'imgurl' => '', 'publish' => '1');
$jieqiSort['article'] = array('layer' => '0', 'code' => 'sanwen', 'caption' => '散文诗词', 'shortname' => '散文', 'description'=>'', 'imgurl' => '', 'publish' => '1');
$jieqiSort['article'] = array('layer' => '0', 'code' => 'qita', 'caption' => '其他类型', 'shortname' => '其他', 'description'=>'', 'imgurl' => '', 'publish' => '1');
?>
页:
[1]