tnnd 发表于 2012-4-18 10:46:26

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

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/}写成
错误代码实例:以下代码图片将无法显示

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



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

{dede:channel type='sun' typeid='4'}

{/dede:channel}

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

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

{/dede:arclist}
orderby='sortrank' 文档排序方式
页: [1]
查看完整版本: 织梦DEDECMS模板的一些简单经验总结