主题 : 上一篇/下一篇
级别: 解元
UID: 37027
积分:306 加为好友
威望: 0 精华: 0
主题:24 回复:97
注册时间:2012-08-03
在线时长:0
1#   发表于:2012-09-04 14:55:05  IP:59.109.*.*
                                <li>
                                   <strong>上一篇:</strong>[@cms_content id=content.id next='1' channelId=channel.id][#if tag_bean??]
                                   <a href="${tag_bean.url}">${tag_bean.title}</a>[#else]没有了[/#if][/@cms_content]
                                </li>
                                <li>
                                   <strong>下一篇:</strong>[@cms_content id=content.id next='0' channelId=channel.id][#if tag_bean??]
                                   <a href="${tag_bean.url}">${tag_bean.title}</a>[#else]没有了[/#if][/@cms_content]
                                </li>

你好,这个是我的新闻终极页面的:上一篇、下一篇;

新闻有几条信息,但上一篇、下一篇不够准确;  点击下一篇、上一篇就提示没有了,其实还有的。  请教。。。
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
2#   发表于:2012-09-04 14:57:31  IP:220.30.*.*
你改了代码吗?
功成由勤,业精于勤。
级别: 解元
UID: 37027
积分:306 加为好友
威望: 0 精华: 0
主题:24 回复:97
注册时间:2012-08-03
在线时长:0
3#   发表于:2012-09-04 15:00:02  IP:59.109.*.*
没有改代码,代码就是上面我发布的。

比如:我今天发布的2条信息,上一篇、下一篇就是好的。
   过2天我在发布2条信息,总共4条信息了。  我点击今天发布的2条信息,会有显示上一篇、下一篇。但不会把  过2填我发布的2条信息给显示出来(显示不出来)。
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
4#   发表于:2012-09-04 15:05:21  IP:220.30.*.*
过两天发布的文章你没推荐前台都没显示肯定没有这个文章
功成由勤,业精于勤。
级别: 解元
UID: 37027
积分:306 加为好友
威望: 0 精华: 0
主题:24 回复:97
注册时间:2012-08-03
在线时长:0
5#   发表于:2012-09-04 15:08:37  IP:59.109.*.*
前台  新闻列表页面是有显示的。  新闻列表页面显示的是4条信息。但上一篇 、下一篇  有问题。
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
6#   发表于:2012-09-04 15:11:40  IP:220.30.*.*
我这加进去了有文章就不会有问题
路漫漫其修远兮,吾将上下而求索!
级别: 解元
UID: 37027
积分:306 加为好友
威望: 0 精华: 0
主题:24 回复:97
注册时间:2012-08-03
在线时长:0
7#   发表于:2012-09-04 15:12:42  IP:59.109.*.*
把你的代码给我看看。
级别: 总版主
UID: 10736
积分:149787 加为好友
威望: 212 精华: 42
主题:297 回复:127674
注册时间:2010-09-08
在线时长:90.1
8#   发表于:2012-09-04 15:21:31  IP:220.30.*.*
<div class="ding fl" onclick="Cms.up('${base}',${content.id},${content.ups});">
        <p>顶</p>
        </div>
        <div class="cai fl" onclick="Cms.down('${base}',${content.id},${content.downs});">
        <p>踩</p>
        </div>
        [/#if]
        <ul>
            <li><strong>上一篇:</strong>[@cms_content id=content.id next='1' channelId=channel.id][#if tag_bean??]<a href="${tag_bean.url}">${tag_bean.title}</a>[#else]没有了[/#if][/@cms_content]</li>
            <li><strong>下一篇:</strong>[@cms_content id=content.id next='0' channelId=channel.id][#if tag_bean??]<a href="${tag_bean.url}">${tag_bean.title}</a>[#else]没有了[/#if][/@cms_content]</li>
        </ul>
        </div>
        </div>
        <!--网友评论_Begin-->[#if channel.commentControl!=2] [#include "inc_comment_list.html"/] [#include "inc_comment_input.html"/] [/#if] <!--网友评论_End--></div>
        <div class="rb_low">&nbsp;</div>
        </div>
路漫漫其修远兮,吾将上下而求索!
级别: 解元
UID: 37027
积分:306 加为好友
威望: 0 精华: 0
主题:24 回复:97
注册时间:2012-08-03
在线时长:0
9#   发表于:2012-09-04 15:55:46  IP:59.109.*.*
你好,我只写:

<ul> 
            <li><strong>上一篇:</strong>[@cms_content id=content.id next='1' channelId=channel.id][#if tag_bean??]<a href="${tag_bean.url}">${tag_bean.title}</a>[#else]没有了[/#if][/@cms_content]</li>
             <li><strong>下一篇:</strong>[@cms_content id=content.id next='0' channelId=channel.id][#if tag_bean??]<a href="${tag_bean.url}">${tag_bean.title}</a>[#else]没有了[/#if][/@cms_content]</li>
         </ul> 

这一段,不影响整个的吧?  上面下面的代码我都不需要了。
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
10#   发表于:2012-09-04 15:59:47  IP:220.30.*.*
有影响
功成由勤,业精于勤。
1 2 > >| 共2页