杰奇小说CMS中上一章下一章代码,防止0.html
具体代码如下
var preview_page = "/txt/{?$article_id?}/{?if $preview_chapterid == 0?}index{?else?}{?$preview_chapterid?}{?/if?}.html";
var next_page = "/txt/{?$article_id?}/{?if $next_chapterid == 0?}index{?else?}{?$next_chapterid?}{?/if?}.html";
var index_page = "/txt/{?$article_id?}/index.html";
<li class="previous"><a class='btn btn-info' href="{?$articleid|subdirectory?}/{?$articleid?}/{?$preview_chapterid?}.html">上一篇</a></li>
<li><a class="btn btn-info" href="{?$articleid|subdirectory?}/{?$articleid?}/">返回目录</a></li>
<li class="next"><a class='btn btn-info' href="{?$articleid|subdirectory?}/{?$articleid?}/{?$next_chapterid?}.html">下一篇</a></li>
<li class="previous"><a class='btn btn-info' href="{?$articleid|subdirectory?}/{?$articleid?}/{?if $preview_chapterid == 0?}{?else?}{?$preview_chapterid?}.html{?/if?}">上一篇</a></li>
<li><a class="btn btn-info" href="{?$articleid|subdirectory?}/{?$articleid?}/">返回目录</a></li>
<li class="next"><a class='btn btn-info' href="{?$articleid|subdirectory?}/{?$articleid?}/{?if $next_chapterid == 0?}{?else?}{?$next_chapterid?}.html{?/if?}">下一篇</a></li>
另外杰奇中还有关关采集规则用到的 书号的 主目录 {NovelKey/1000}
还有后台采集规则中的 主目录<{subarticleid}>
评论