Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索
12
返回列表 发新帖

[已答复] 求在新闻列表也与新闻首页调用作者与来源的方法 急

[复制链接]
lidq.jingwu 发表于 2009-10-29 10:32:38 | 显示全部楼层
7# leyingcom


    在调用代码中加上showdetail/1/,再试一下。
回复

使用道具 举报

 楼主| leyingcom 发表于 2009-10-29 10:58:59 | 显示全部楼层
11# lidq.jingwu
  1. <!--根分类最新日志列表-->
  2.                         <!--{if $_SGET['page'] < 2 || empty($_SGET['mode'])}-->
  3.                         <!--{block name="spacenews" parameter="perpage/20/catid/$thecat[subcatid]/order/i.dateline DESC/cachename/newlist"}-->
  4.                         <!--{if $_SBLOCK['newlist']}-->
  5.                         <ul class="global_tx_list4">
  6.                                 <!--{loop $_SBLOCK['newlist'] $value}-->
  7.                                 <li><span class="box_r">#date('m-d', $value['dateline'])#</span><a href="$value[url]">$value[subject]</a>$news[newsauthor]</li>
  8.                                 <!--{/loop}-->
  9.                         </ul>
  10.                         <!--{/if}-->
  11.                         <!--{if $_SBLOCK[newlist_multipage]}-->
  12.                                 $_SBLOCK[newlist_multipage]
  13.                         <!--{/if}-->
  14.                         <!--{/if}-->
复制代码
$news[newsauthor] 这个代码无需 你说的代码 需要加在什么位置 请指示 谢谢
回复

使用道具 举报

shwan 发表于 2009-10-29 11:00:27 | 显示全部楼层
leyingcom


    在调用代码中加上showdetail/1/,再试一下。
lidq.jingwu 发表于 2009-10-29 10:32



    showdetail/1         是指显示缩略信息1的信息
人家是要调用 文章作者和来源 这样没有用的
回复

使用道具 举报

benba 发表于 2009-10-29 14:23:01 | 显示全部楼层
好.                                                   .
回复

使用道具 举报

shwan 发表于 2009-10-29 14:36:46 | 显示全部楼层
14# benba


    呵呵。人家要了嘛,就得给,不然就辜负了你们当初对我的帮助了。
回复

使用道具 举报

 楼主| leyingcom 发表于 2009-10-30 22:32:57 | 显示全部楼层
还是没有官方人员正确回答啊
回复

使用道具 举报

 楼主| leyingcom 发表于 2009-10-31 21:02:47 | 显示全部楼层
继续求助啊
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-15 23:24 , Processed in 0.107978 second(s), 12 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表