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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已答复] ss单条调用内容 求教

[复制链接]
winxueer 发表于 2009-11-17 11:50:36 | 显示全部楼层 |阅读模式
<!--{block name="spacenews" parameter="itemid/37/order/i.dateline DESC/limit/0,10/subjectlen/40/showdetail/1/messagelen/200/showcategory/1/cachename/bgdddd/tpl/data"}--><!--单张图片显示模块-->
        
          <!--{loop $_SBLOCK['spacenews'] $pkey $list1xvalue}-->

          <a href="$list2value[url]"><img src="$list1xvalue['a_filepath']" alt="" /  width="550"  border="0"></a>$list1xvalue[subject]

          <!--{/loop}-->
          <!--98X72-->
以上是代码我想调用37ID的图片与标题

问题是只显示了标题 没显示图片 怎么弄?
 楼主| winxueer 发表于 2009-11-17 11:53:05 | 显示全部楼层
加上了haveattach/2也没有用.............
回复

使用道具 举报

lidq.jingwu 发表于 2009-11-17 11:54:02 | 显示全部楼层
将$_SBLOCK['spacenews'] 打印出来看一下里面是否有需要的图片数据。
回复

使用道具 举报

 楼主| winxueer 发表于 2009-11-17 13:09:04 | 显示全部楼层
$_SBLOCK['spacenews'] 中没有图片的数据y?
回复

使用道具 举报

lidq.jingwu 发表于 2009-11-17 13:38:31 | 显示全部楼层
打印下面这个变量:
$_SBLOCK['bgdddd']

你的展示代码是从那里看的那样写。
看下面的文档吧:
教您如何读懂模块代码里的参数:http://faq.comsenz.com/viewnews-312
SupeSite7.0数据调用模块参数详解:http://faq.comsenz.com/viewnews-696
模板里经常用到以下几个标签的说明:https://discuz.dismall.com/viewth ... page%3D1&page=1
写数据调用的展示代码前应知道的一些知识:https://discuz.dismall.com/thread-1408121-1-1.html
如何写展示代码:https://discuz.dismall.com/thread-1409174-1-1.html
如何使用模块功能的高级模式:https://discuz.dismall.com/thread-1407022-1-1.html
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-28 07:21 , Processed in 0.246051 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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