单页内容:
${channel.txt!}
提取某单页内容:
[@cms_channel id='51']
[@text_cut s=tag_bean.txt len=100 append=append/]
[/@cms_channel]
栏目列表:
[@cms_channel_list tpl='1' parentId='1'/]
带日期的首页文字列表
[@cms_content_list count='5' recommend='1' titLen='10' headMark='4' dateFormat='yyyy-MM-dd' channelOption='1']
<ul class="topnews">
[#list tag_list as a]
<li>
<img src="http://localhost/jeecms3/r/cms/head-mark4.gif"" align="middle" class="img-vm" border="0"/>
<a href="${a.url}" title="${a.title}" target="_blank">[@text_cut s=a.title len=titLen append=append/]</a><em>${a.date?string(dateFormat)}</em>
</li>
[/#list]
</ul>
[/@cms_content_list]
新闻分页列表(在分页过程中,需要调整url比如:第一个index.jhtml、第二个index_2.jhtml)
[@cms_content_page channelId='1' count=channel.pageSize sysPage='1' pageClass='pagination' styleList='1-1' titLen='15' orderBy='2' dateFormat='yyyy-MM-dd'
channelOption='1']
[#list tag_pagination.list as a]
<ul class="topnews"><li><img src="http://localhost/jeecms3/r/cms/head-mark4.gif"" align="middle"
class="img-vm" border="0"/>
<a href="${a.url}" title="${a.title}" target="_blank">[@text_cut s=a.title len=titLen append=append/]</a> <span>
[${a.date?string(dateFormat)}]</span>
</li></ul>
[/#list]
[/@cms_content_page]
友情链接:
[@cms_friendlink_list]
[#list tag_list as link]
<dd><a href="${link.domain}" onclick="$.get('${base}/friendlink_view.jspx?id=${link.id}')"
target="_blank">${link.name}</a></dd>
[/#list]
[/@cms_friendlink_list]
投票栏目:
[#include "../include/投票栏.html"/]
[@cms_vote]
[#if !tag_bean??]
<div>没有默认投票主题</div>
[#else]
<form name="votes" action="${base}/vote.jspx" method="post" target="_blank">
<table
width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td height="30" colspan="2" align="left">${tag_bean.title?html}
<input
type="hidden" name="voteId" value="${tag_bean.id}"/></td>
</tr>
[#if tag_bean.multiSelect gt 1]
[#list tag_bean.items as item]
<tr>
<td
width="9%" height="20" align="center"><input type="checkbox" name="itemIds" value="${item.id}" onClick="check_votes(${tag_bean.multiSelect})"
id="${item.id}"/></td>
<td width="91%" align="left">${item.title?html}</td>
</tr>
[/#list]
[#else]
[#list tag_bean.items as item]
<tr>
<td width="9%" height="20" align="center"><input type="radio" name="itemIds" value="${item.id}"/></td>
<td width="91%" align="left">${item.title?
html}</td>
</tr>
[/#list]
[/#if]
<tr>
<td height="30" colspan="2" align="center"><input type="submit" value="投 票" onClick="return
check_votes(${tag_bean.multiSelect})"/>
<a href="${base}/vote_result.jspx?voteId=${tag_bean.id}" target="_blank">查看投票结果</a> </td>
</tr>
</table>
</form>
[/#if]
[/@cms_vote]
网友留言:
[@cms_guestbook_list count='10' recommend='1' checked='1']
[#list tag_list as m]
<dl class="gb">
<dt><span>[${m.ctg.name!}]</span>${m.titleHtml!}</dt>
<dd>${m.contentHtml!}</dd>
</dl>
[/#list]
[/@cms_guestbook_list]
图片焦点切换:(想要在首页显示图片,文章内容必须要选择内容类型!)
[@cms_content_list typeId='3' styleList='3-1' titLen='20' count='5' flashWidth='280' flashHeight='200' textHeight='20' channelOption='1' tpl='2'/]
首页最新内容提要:
<ul class="topnews">
[@cms_content_list count='2' typeId='4' descLen='60' append='...' channelOption='1']
[#list tag_list as a]
<li class="toptext[#if a_index gt 0] line[/#if]">
<a href="${a.url}" title="${a.title}" target="_blank"><h3>${a.stit}</h3></a>
<p>[@text_cut s=a.desc len=descLen append=append/]</p>
</li>
[/#list]
[/@cms_content_list]
</ul>
flv
http://bbs.jeecms.com/muban/7903.jhtml
留言版模板、投票模版修改在special中
修改jeecms3的后台地址:
http://bbs.jeecms.com/azsy/5023.ht