1.嵌套置标
<TRS_TEMPLATE TEMPNAME="嵌套模版名称"></TRS_TEMPLATE>
2.站点发布地址
<trs_website field='_recurl' urlisabs='true' />
3.导航置标
<div> <ul> <TRS_CHANNELS STARTPOS="0" NUM="5" ID="站点名称"> <li> <a href="<TRS_CHANNEL FIELD='_RECURL'/>"><TRS_CHANNEL FIELD="CHNLDESC" AUTOLINK="false" AUTOFORMAT="false">导航条</TRS_CHANNEL></a> </li> </TRS_CHANNELS> </ul> </div>
4.首页模版 简单导航条(首页、各栏目名)
<TRS_CHANNELS ID="SITE" NUM="7"> <TRS_CHANNEL EXTRA="CLASS='dh_font01'" autolink="true"></TRS_CHANNEL> | (栏目之间的分割线,可以替换或删除) </TRS_CHANNELS>
4.复杂导航条—显示下拉子栏目
<TRS_CHANNEL id="新闻中心" field="CHNLNAME" autolink="FALSE"> </TRS_CHANNEL> <li> <TRS_CHANNEL ID="新闻中心" CHILDINDEX=0 AUTOLINK="TRUE"/</li> <li> <TRS_CHANNEL ID="新闻中心" CHILDINDEX=1 AUTOLINK="TRUE"/</li> <li> <TRS_CHANNEL ID="新闻中心" CHILDINDEX=2 AUTOLINK="TRUE"/</li> <li> <TRS_CHANNEL ID="新闻中心" CHILDINDEX=3 AUTOLINK="TRUE"/</li>
5.更多置标
<TRS_CHANNEL id=" 某省局动态 " field="_RECURL" ></TRS_CHANNEL>
6.新闻列表置标
<TRS_DOCUMENTS ID="owner"/"新闻中心" NUM="1000" startpos="0" PAGESIZE="20"> 标题:<TRS_DOCUMENT FIELD="DOCTITLE" num="40" AUTOLINK="TRUE">标题</TRS_DOCUMENT> 日期:<TRS_DOCUMENT FIELD="CRTIME" DATEFORMAT="yyyy-mm-dd HH:mm:ss">日期</TRS_DOCUMENT> </TRS_DOCUMENTS>
7.概览 分组
<TRS_DOCUMENTS id="新闻" num="50"> <TRS_RECORD NUM=2> <TRS_DOCUMENT FIELD="DOCTITLE"/> </TRS_RECORD> </TRS_DOCUMENTS>
8.概览 栏目的名称显示(title、导航等)
<TRS_CHANNEL id="OWNER" field="CHNLNAME" autolink="FALSE"></TRS_CHANNEL>
9.细览详细页置标
标题:<TRS_DOCUMENT FIELD="DOCTITLE">标题</TRS_DOCUMENT> 日期:<TRS_DOCUMENT FIELD="CRTIME" DATEFORMAT="yyyy-mm-dd HH:mm:ss">创建时间标题</TRS_DOCUMENT> 发稿人:<TRS_DOCUMENT FIELD="TRUEUSER">发稿人</TRS_DOCUMENT> 来源:<TRS_DOCUMENT FIELD="DOCSOURCE">来源</TRS_DOCUMENT> 正文:<TRS_DOCUMENT FIELD="DOCHTMLCON">正文</TRS_DOCUMENT> 摘要:<TRS_Document FIELD="DocAbstract" num="200" AUTOCOLOR="true" AUTOLINK="true">摘要</TRS_Document> 作者:<TRS_DOCUMENT FIELD="DOCAUTHOR" AUTOLINK="TRUE">作者</TRS_DOCUMENT>
10.细览/概览 附件
图片型附件<TRS_APPENDIX INDEX="0" MODE="PIC"/> 文档型附件<TRS_APPENDIX INDEX="0" MODE="FILE"/> 链接型附件<TRS_APPENDIX INDEX="0" MODE="LINK"/> 全部附件<TRS_APPENDIX INDEX="0" MODE="all"/>
<!--二维码S--> <div class="info_ewm"> <script src="jquery.qrcode.min.js" OLDSRC="jquery.qrcode.min.js" OLDID="1171" RELATED="1"></script> <script type="text/javascript">$(function(){var str = "<trs_document field="_recurl" urlisabs="true" />";$("#code").qrcode({render: "table",width: 130,height:130,text: str});});</script> <div style="margin:auto; position:relative; padding:15px;">扫一扫在手机打开当前页</div> <div id="code" style="margin: 0 auto;"></div> </div> <!--二维码E-->
11.细览 上一篇
<TRS_PreDocuments num="3" <TRS_Document Field='DocTitle' Autolink='true'/> </TRS_PreDocuments>
12.细览 下一篇
<TRS_NextDocuments> <TRS_Document Field='DocTitle' AutoLink='true'/> </TRS_NextDocuments>
13.细览相关新闻
<TRS_RELNEWS NUM="5" MODE="ALL"> <TRS_DOCUMENT FIELD="DOCTITLE" num=""/> <TRS_DOCUMENT FIELD="CRTIME" DATEFORMAT="yyyy-mm-dd HH:mm:ss">创建时间</TRS_DOCUMENT> </TRS_RELNEWS>
14.引用导读置标
<TRS_Region Index="0"> <TRS_Cell> <TRS_Document Field="Doctitle"/> </TRS_Cell> </TRS_Region>
15.引用发布评论选件:
<A href="<TRS_COMMENT></TRS_COMMENT>"><FONT face= 宋体 color=#000000 size=2> 发布评论 </FONT></A>
16.特殊效果:
1.【字体:大 中 小】: <script language="javascript"> function ChangeFont(i) { document.getElementById("Content").style.fontSize=i; } </script> 【字体: <a href="javascript:ChangeFont(16)">大</a> <a href="javascript:ChangeFont(14)">中</a> <a href="javascript:ChangeFont(12)">小</a> 】 2.【关闭窗口】: <a href="jacascript:void(0)" onclick="window.close();">关闭窗口</a>
17.二级页当前位置
您当前位置: <TRS_CURPAGE value=">" only="FALSE" autolink="TRUE" target="_blank" homepagedesc=" 首页 "></TRS_CURPAGE>
18.首页简介正文限定字符
<TRS_DOCUMENT field="DOCCONTENT" num="720"> 正文 </TRS_DOCUMENT>
19.图片列表置标
<TRS_DOCUMENTS ID="国学话生态" NUM="10000" > <TRS_Record num=9> <li> <a href="<TRS_document field=_recurl></trs_document>"> <trs_appendix mode="pic" EXTRA="width='228' height='165' border='0'">图</TRS_appendix></a> <h2><TRS_Document FIELD="DOCTITLE" num="20" EXTRA="class='zt9'"/></h2> </li> </TRS_Record> </TRS_DOCUMENTS>
20.新闻标题长度截断标识
TRUNCATEDFLAG= ” ”
21.多个新闻栏目提取
<TRS_RollDocuments PARENTCHANNELID=1713 CHILDLEVEL=1 num="5" timerange="12" > </TRS_RollDocuments>
Timerange:多少天内最新新闻
21.创建人
<TRS_DOCUMENT field="CRUSER" ></TRS_DOCUMENT>
22.分享
<TRS_BSHARE Type="1"/>
23.翻页
<script type="text/javascript"> createPageHTML(${PAGE_COUNT}, ${PAGE_INDEX}, "${PAGE_NAME}", "${PAGE_EXT}"); </script> <SCRIPT LANGUAGE="JavaScript"> <!-- function createPageHTML(_nPageCount, _nCurrIndex, _sPageName, _sPageExt){ if(_nPageCount == null || _nPageCount<=1){ return; } var nCurrIndex = _nCurrIndex || 0; document.write("第 "); if(nCurrIndex == 0) document.write("<font color='red'>1</font> "); else document.write("<a href=\""+_sPageName+"."+_sPageExt+"\" >1</a> "); for(var i=1; i<_nPageCount; i++){ if(nCurrIndex == i) document.write("<font color='red'>"+(i+1) + "</font> "); else document.write("<a href=\""+_sPageName+"_" + i + "."+_sPageExt+"\" >"+(i+1)+"</a> "); } document.write("页"); } //--> </script>
24.列表页 每行颜色不一样
<TRS_DOCUMENTS id="OWNER" > <TRS_RECORD num="1"> <li><a href=""><TRS_DOCUMENT FIELD="DOCTITLE"></TRS_DOCUMENT> </a><span>2015-12-16</span></li> </TRS_RECORD> <TRS_RECORD num="1"> <li><a href="><TRS_DOCUMENT field="DOCTITLE" autocolor="FALSE" extra="style='font-size:12px;color:red'" ></TRS_DOCUMENT> </a><span>2015-12-16</span></li> </TRS_RECORD> </TRS_DOCUMENTS>
25.返回首页
<a href="<TRS_WebSite field="RootDomain" />"> 首页 </a>
26.提取首页标题
<TRS_DOCUMENT field="DOCPEOPLE" autocolor="FALSE" autolink="TRUE" linkalt="TRUE" ></TRS_DOCUMENT>
26.提取首页标题
<TRS_DOCUMENT FIELD="DOCTITLE" CODEFILTERED="true"></TRS_DOCUMENT>
27.过滤标题中HTML代码
CODEFILTERED="true" TRUNCATEDFLAG=""
28.图片新闻
<TRS_DOCUMENTS id="图片新闻" channeltype="0" num="5" startpos="0" > <LI><A title="<TRS_DOCUMENT field="DOCTITLE" num="30" autolink="false" linkalt="TRUE" autocolor="FALSE" TRUNCATEDFLAG ="">标题</TRS_DOCUMENT>" href="" target="_blank"> <IMG src="<TRS_APPENDIX field="_RECURL" mode="PIC" index="0" target="_blank" memo="TRUE" upload="TRUE"></TRS_APPENDIX>" /> </A></LI> </TRS_DOCUMENTS>
29.最近三天内的文档后加“new”
<trs_documents num="xxx"> <trs_document/> <trs_newicon time="3d">new</trs_newicon> </trs_documents>
30.父级栏目显示下级内容
高级设置填写查询语句
chnlid in (select channelid from wcmchannel where parentid=63908)
31.归档
<script> $(document).ready(function(){ var data_gd=$('#data_gd').attr('data_gd'); if(data_gd==1 ){ $("#data_gd").show(); } }); </script> <style>.ygd-b1{z-index: 9999;}.ygd-b1 img{height: 60px;}</style> <div class="ygd-b1" style="display: none;" id="data_gd" data_gd="<TRS_CHANNEL id="owner" FIELD='ISARCHIVE'>是否归档</TRS_CHANNEL>"> <img src="ygd2023-b.png" OLDSRC="ygd2023-b.png" OLDID="7426" RELATED="1" /> </div>
<style>.ygd-b{z-index: 9999;position: relative;float: right;}.ygd-b img{height: 160px;}</style> <TRS_CONDITION REFERENCE="1" CONDITION="@isarchive" OPERATOR="=="> <div class="ygd-b"><img src="ygd2023-b.png" OLDSRC="ygd2023-b.png" OLDID="7426" RELATED="1" /></div> </TRS_CONDITION>
<TRS_CHANNEL FIELD="ARCHIVETIME">归档</TRS_CHANNEL>
32.网站栏目头部
<TRS_TEMPLATE TEMPNAME="2022版-CSS-嵌套">2022版-CSS-嵌套</TRS_TEMPLATE> <title><TRS_CHANNEL ID="OWNER" field="CHNLDESC" autoformat="FALSE" autoformattype="HTML" autolink="FALSE" target="_self" linkalt="FALSE" truncatedflag="...">栏目名称</TRS_CHANNEL>-广西壮族自治区XXX</title> <meta name="robots" content="all" /> <meta name="keywords" content="广西壮族自治区XXX"/> <meta name="description" content="广西壮族自治区XXX" /> <meta name="SiteName" content="广西壮族自治区XXX" /> <meta name="SiteDomain" content="XXX.gxzf.gov.cn" /> <meta name="SiteIDCode" content="45000000XX" /> <meta name="ColumnName" content="<TRS_CHANNEL ID="OWNER" field="CHNLDESC" autoformat="FALSE" autoformattype="HTML" autolink="FALSE" target="_self" linkalt="FALSE" truncatedflag="...">栏目名称</TRS_CHANNEL>" /> <meta name="ColumnDescription" content="<TRS_CHANNEL ID="OWNER" field="CHNLDESC" autoformat="FALSE" autoformattype="HTML" autolink="FALSE" target="_self" linkalt="FALSE" truncatedflag="...">栏目名称</TRS_CHANNEL>" /> <meta name="ColumnKeywords" content="<TRS_CHANNEL ID="OWNER" field="CHNLDESC" autoformat="FALSE" autoformattype="HTML" autolink="FALSE" target="_self" linkalt="FALSE" truncatedflag="...">栏目名称</TRS_CHANNEL>" /> <meta name="ColumnType" content="<TRS_CHANNEL ID="OWNER" field="CHNLDESC" autoformat="FALSE" autoformattype="HTML" autolink="FALSE" target="_self" linkalt="FALSE" truncatedflag="...">栏目名称</TRS_CHANNEL>" />
33.json推送数组
[<TRS_ROLLDOCUMENTS FROMCHANNELIDS="63865,63866,63867,63869,63874,63875, 63876,63878,63879,63880,63882,63883,63884,63885,63886,63888,63901" INCLUDEPARENT="true" CHILDLEVEL="5" TIMERANGE="365" MODAL="1,2,3" AUTOTRIGGER="TRUE" ORDER="docreltime desc"> { "URL":"<TRS_Document field='_recurl' />", "TITLE":"<TRS_Document FIELD="doctitle" AUTOLINK="false" autocolor="false" >文档标题</TRS_Document>" }<TRS_IsNotLastRecord>,</TRS_IsNotLastRecord> </TRS_ROLLDOCUMENTS> ]
chnlid in (202629,202630,202631) chnlid in (select channelid from wcmchannel where parentid in (14900,14901,16523,16526,16543,22744,16527,16531,16536,21226,21229,21247,22746))
<form action="https://www.gxmu.edu.cn/fzlm/" method="get" name="form1" onsubmit="return mysubmit1();" id="form1" accept-charset="utf-8" target="_blank"> <input id="xwgk_sea" name="searchword" class="sea" placeholder="请输入关键词" type="text" /> <input id="searchtype" name="searchtype" type="hidden" value="110000200000" /> <button id="xwgk_rch" >搜索</button> </form> <script language="javascript" type="text/javascript"> function Trim(str){return str.replace(/(^\s*)|(\s*$)/g,"");} function mysubmit1(){ var searchword=$("#xwgk_sea").val(); if(Trim(searchword)=="" || Trim(searchword)=="请输入关键词"){ alert("请输入关键词!"); $("#xwgk_sea").focus(); return false; }else{ $("#xwgk_sea").val(searchword); return true; } var searchtype=$("#searchtype").val(); searchtype=searchtype.replace(/\s/g,""); $("#searchtype").val(searchtype); } </script>
<!--附件s--> <!----------------附件------------------> <div class="clear20 apph" ></div> <div class="fj" style="display:none"> 相关附件下载: <div class="downfile"><TRS_APPENDIX NAMEONLY="false" UPLOAD="true" MODE="FILE" /></div> </div> <div class="clear20 apph" ></div> <script type="text/javascript"> var downfile=$(".downfile").html(); console.log(downfile.length); if (downfile.length> 0 ) { $(".fj").css("display","block"); } </script> <!----------------附件------------------> <!--附件e-->
<TRS_ROLLDOCUMENTS PARENTCHANNELID="政府例行新闻发布会" INCLUDEPARENT="true" CHILDLEVEL="5" STARTPOS="0" NUM="1" TIMERANGE="3650" MODAL="1,2,3" AUTOTRIGGER="TRUE" ORDER="docreltime desc"> <a href=" '_recurl' />" target="_blank" class="home-xwfbhImg"> < img src="<TRS_APPENDIX INDEX='0' FIELD='_recurl' MODE='pic' UPLOAD='true'></TRS_APPENDIX>" alt="<TRS_DOCUMENT FIELD='doctitle' AUTOLINK='false' autocolor='false'/>" /> <p><TRS_DOCUMENT FIELD='doctitle' AUTOLINK='false' autocolor='false'/></p > </a > </TRS_ROLLDOCUMENTS> <div class="home-xwfbh-list"> <ul class="list"> <TRS_ROLLDOCUMENTS PARENTCHANNELID="政府例行新闻发布会" INCLUDEPARENT="true" CHILDLEVEL="5" STARTPOS="0" NUM="5" TIMERANGE="3650" MODAL="1,2,3" AUTOTRIGGER="TRUE" ORDER="docreltime desc"> <li><span class="time"><TRS_DOCUMENT FIELD="docreltime" DATEFORMAT="yyyy-MM-dd">2014-10-01</TRS_DOCUMENT></span>" target="_blank"> <TRS_DOCUMENT FIELD='doctitle' AUTOLINK='false' autocolor='false'/></li> </TRS_ROLLDOCUMENTS>