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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 模块模板的loop,order使用问题

[复制链接]
dotook 发表于 2012-11-27 11:35:17 | 显示全部楼层 |阅读模式
<div class="module cl xl xl1">
<ul>
[index1=1]<div style="width:292px; float:left; line-height:30px;"><li style="width:145px; float:left; text-align:center;"><a href="{url}"{target}><img src="{pic}" width="{picwidth}" height="{picheight}" alt="{title}" /></a><p style="width:145px; height:30px; overflow:hidden;"><a href="{url}" title="{title}"{target}>{title}</a></p></li>[/index1]
[index2=2]<li style="width:145px; float:left; text-align:center;"><a href="{url}"{target}><img src="{pic}" width="{picwidth}" height="{picheight}" alt="{title}" /></a><p style="width:145px; height:30px; overflow:hidden;"><a href="{url}" title="{title}"{target}>{title}</a></p></li>[/index2]
[index3=3]<li style="width:145px; float:left; text-align:center;"><a href="{url}"{target}><img src="{pic}" width="{picwidth}" height="{picheight}" alt="{title}" /></a><p style="width:145px; height:30px; overflow:hidden;"><a href="{url}" title="{title}"{target}>{title}</a></p></li>[/index3]
[index4=4]<li style="width:145px; float:left; text-align:center;"><a href="{url}"{target}><img src="{pic}" width="{picwidth}" height="{picheight}" alt="{title}" /></a><p style="width:145px; height:30px; overflow:hidden;"><a href="{url}" title="{title}"{target}>{title}</a></p></li></div>[/index4]
[loop]
<li style="line-height:30px;"><a href="{url}" title="{title}"{target}>{title}</a></li>
[/loop]
[order=1][/order][order=2][/order][order=3][/order][order=4][/order]
</ul>
</div>

----------------

这段代码有问题没?请高手指点。

我想实现的功能就是1-4条信息为缩略图加标题暂时,8-12条信息是标题列表。。。

现在是能达到这个效果了,,,可是内容最后面还有“[order=1][/order][order=2][/order][order=3][/order][order=4][/order]
”这个也被输出出来了,,,求助。


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
 楼主| dotook 发表于 2012-11-27 11:36:16 | 显示全部楼层
loop和order,index的用法哪里有详解?
回复

使用道具 举报

 楼主| dotook 发表于 2012-11-27 11:46:07 | 显示全部楼层
怎么没人处理来,,顶。。。。
回复

使用道具 举报

hailiminer 发表于 2012-11-27 11:49:49 | 显示全部楼层
等待    ,,,高手进呀~
回复

使用道具 举报

 楼主| dotook 发表于 2012-11-27 16:07:38 | 显示全部楼层
高手都不理我们。。。
回复

使用道具 举报

xidiansanxiao 发表于 2012-11-27 22:29:34 | 显示全部楼层
你看着帖子,想着,这个论坛怎么这样呢,大家视而不见呢,还是因为你们都是文盲
回复

使用道具 举报

 楼主| dotook 发表于 2012-11-28 09:14:21 | 显示全部楼层
晕了。。。
回复

使用道具 举报

dujun0618 发表于 2012-11-28 10:04:47 | 显示全部楼层
Discuz! X2.5 模块模板[index]使用技巧
http://www.cnit618.com/html/kyxt/discuz/2706.htm
回复

使用道具 举报

高手之烟花易冷 发表于 2013-7-3 15:33:03 | 显示全部楼层
http://sxwlkj.net/index.php?m=news&a=newview&id=33 上线网络提供的教程,转载可以,请带上链接哦,这里有讲到,loop如何结合order以及index的用法,也讲了index的单独使用,很全面,希望对你有帮助
回复

使用道具 举报

googlg 发表于 2013-7-29 14:23:51 | 显示全部楼层
帮顶,也没有找到关于这个的官方东西。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-22 13:32 , Processed in 0.108702 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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