1、织梦cms {dede:list}怎样取指定栏目下的内容
在底层模板设置typeid参数,即可
标签名称:list
功能说明:表示列表模板里的分页内容列表
适用范围:仅列表模板 list_*.htm
基本语法:
{dede:list col='' titlelen='' infolen='' imgwidth='' imgheight='' listtype='' orderby='' pagesize='' orderway=''}{/dede:list}
参数说明:
col='' 内容列数
titlelen='' 标题长度
infolen='' 内容摘要长度
imgwidth='' 缩略图宽
imgheight='' 缩略图高
orderby='' 排序方式,有效的排序方式有 senddate、pubdate、id、click、lastpost、postnum ,默认为 sortrank
pagesize='20' 分页大小
底层模板字段:
ID(同 id),typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer,
source,litpic(同picname),pubdate,senddate,mid, lastpost,scores,goodpost,badpost,notpost,
description(同infos),filename, image, imglink, fulltitle, textlink, typelink,plusurl, memberurl, templeturl,
stime(pubdate 的"0000-00-00"格式)
注:list标记除了支持档案表的基本模板变量外,还支持附加表的字段,你可以在模型管理中知道附加表支持列表使用的字段有哪些。
2、jeecms的cms_content_list标签如何获取序号
${a_index + 1}
3、【@cms_content_list】标签 中循环输出,如何前5条输出class为new的,后3条为不带new的??
${a_index}这个是循环的次数下标,从0开始计算,<li ${a_index<=4 ? "class='new'":""} >当循环为前5时,输出<li class='new'>,否则输出<li >
4、jeecms的cms_content_list标签如何获取序号?
${a_index+1}
5、jeecms @cms_content_list 的 frameDate 属性无效 还有isPage也是没反应
${a.releaseDate?string(dateFormat)}
这是日期的
想要分页要用CMS_CONTENT_PAGE
6、PHPCMS V9中,在list_news.html中
{pc:content action="lists" catid="36" num="5"}
改为
{pc:content action="lists" catid="36" num="5" moreinfo="1"}
content 字段属於 附表 加上 moreinfo 为调用附表字段
7、帝国cms自定义页面内容怎么调出来
在管理标签模板 中使用做标签
页面模板内容:
<table>[!--empirenews.listtemp--]<tr><td><!--list.var1--></td></tr>[!--empirenews.listtemp--]</table>
列表内容模板(list.var) :
[!--newstext--]
然后在页面中使用sql调用,
<?php
$k="select newstext from phome_ecms_news where id=8";
$kk=$empire->fetch1($k);
echo $kk[newstext];
?>
8、phpcms中的L('list','', 'content')是什么意思
L
9、aspcms新闻详细内容页的标签怎么调用?
相关内容调用
type,sort 可选参数
{aspcms:aboutart type=0 sort=1 num=12 key=[news:tag]}
<a href="[aboutart:link]">[aboutart:title len=20]</a>
{/aspcms:aboutart}
热门内容
order=visits 按浏览量排序
time=month 一个月内 time=week 一周 time=day 一天
不设置专time则是所有属内容
{aspcms:news num=6 type=0 sort=1 time=month order=visits}
<a href="[aboutart:link]">[aboutart:title len=20]</a>
{/aspcms:news}