主题 : 文章内容页的上一篇和下一篇的上一篇总是显示没有
级别: 童生
UID: 35649
积分:42 加为好友
威望: 0 精华: 0
主题:3 回复:15
注册时间:2012-06-29
在线时长:0
1#   发表于:2012-07-10 10:42:29  IP:124.192.*.*
<div class="contain">
    <div class="mainbg">
        <div class="right_c">
         <div class="c_t t12gray">当前栏目: <a href="http://mjcs.975game.com/index.html">首页</a> > [#list channel.nodeList as n][#if n_index!=0] <a href="${n.url}" class="t12">${n.name}</a> [#if n_has_next] &raquo; [/#if][/#if][/#list]</div>
            <div class="c_m t12gray">
             <div class="c_m_t">${content.title}</div>
                <div class="c_m_t2">发布时间:${content.releaseDate} 作者:${content.author!'本站编辑'}</div>
                <div class="c_m_c">
                    [#if content.mediaPath?? && content.mediaType??]
                       <p style="margin: 5px auto; text-align: center">
                    [#if content.mediaType=='FLV'] 
                       <object height="300" width="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
                           <param name="movie" value="/${res}/img/flvplayer.swf" />
                           <param name="quality" value="high" />
                           <param name="allowFullScreen" value="true" />
                           <param name="FlashVars" value="vcastr_file=${content.mediaPath!}&BufferTime=3" />
                           <embed height="300" width="400" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" flashvars="vcastr_file=${content.mediaPath!}" allowfullscreen="true" src="/${res}/img/flvplayer.swf">
                           </embed>
                       </object>
                    [#elseif content.mediaType=='FLASH'] 
                       <embed height="300" width="400" type="application/x-shockwave-flash" quality="high" src="${content.mediaPath}" wmode="transparent" align="center"></embed>
                    [#else] <embed height="300" width="400" type="video/x-ms-wmv" src="${content.mediaPath}" console="cons" controls="ImageWindow" autostart="true"></embed>[/#if]</p>
                    [/#if]${txt!}
                </div>
                <div class="otherlink">
                     <strong class="t12">登录:</strong><a href="http://mjcs.975game.com/" target="_blank" class="t12">http://mjcs.975game.com/</a><br />
                     <strong class="t12">马上注册体验:</strong><a href="http://account.975game.com/reg/register.jsp" target="_blank" class="t12">http://account.975game.com/reg/register.jsp</a>
                </div>
                <div class="c_m_n">
                     <strong class="t12">上一篇:</strong>
                         [@cms_content id=content.id next='1' channelId=channel.id][#if tag_bean??]<a href="${tag_bean.url}" class="t12">${tag_bean.title}</a>[#else]没有了[/#if][/@cms_content]<br /><br />
                     <strong class="t12">下一篇:</strong>
                         [@cms_content id=content.id next='0' channelId=channel.id][#if tag_bean??]<a href="${tag_bean.url}" class="t12">${tag_bean.title}</a>[#else]没有了[/#if][/@cms_content]
                </div>
        </div>
</div>
帮忙看下代码有问题吗?谢谢!
还是说我每次发表一篇文章都需要重新生成一下,然后再把所有文章的内容重新修改再提交一下,才会重新显示上一篇是否有文章。
上篇有文章但是总是显示没有了
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
2#   发表于:2012-07-10 11:27:25  IP:115.215.*.*
请描述下您的系统使用环境,如操作系统,JDK版本,tocmat版本,mysql版本等
功成由勤,业精于勤。
级别: 状元
UID: 33380
积分:50625 加为好友
威望: 21 精华: 3
主题:88 回复:30687
注册时间:2012-05-07
在线时长:0
3#   发表于:2012-07-10 11:27:41  IP:115.215.*.*
你使用的版本是?
功成由勤,业精于勤。
1 共1页