找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 596|回复: 0

织梦DEDECMS模板的一些简单经验总结

[复制链接]
发表于 2012-4-18 10:46:26 | 显示全部楼层 |阅读模式
Normal
0

7.8 磅
0
2

false
false
false














MicrosoftInternetExplorer4






/* Style Definitions */
table.MsoNormalTable
{mso-style-name:普通表格;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}

  织梦DEDECMS模板的一些简单经验总结:
1、列表{} 里面不能再嵌套 {}标记  {field:global.cfg_templeturl/}写成 [field:global.cfg_templeturl/]
错误代码实例:以下代码图片将无法显示

{dede:arclist orderby=pubdate typeid="4" titlelen='46' row='10'}



{/dede:arclist}
2、dede调用某栏目所有分类

{dede:channel type='sun' typeid='4'}
[field:typename/]
{/dede:channel}

3、织梦DEDECMS打造自定义字段排序

标签dede:arclist的排序是通过
                                    
         orderby来指定的,如下:
{dede:arclist orderby='排序字段' }

{/dede:arclist}
orderby='sortrank' 文档排序方式
回复

使用道具 举报

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

本版积分规则

QQ|Archiver|手机版|小黑屋|要学吧论坛

GMT+8, 2026-1-24 02:42 , Processed in 0.032742 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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