模版导入 (头部/左侧模板为嵌套模板):
<TRS_TEMPLATE TEMPNAME="头部模板">头部模板</TRS_TEMPLATE>
<TRS_TEMPLATE TEMPNAME="左侧模板">左侧模板</TRS_TEMPLATE>
页面跳转指定栏目:<meta http-equiv="Refresh" content="1; url=<TRS_CHANNEL ID='本社首页' FIELD='_RECURL'/>" />
点击图片进入指定栏目(相对路径):<a href="<TRS_CHANNEL ID='畅销书' FIELD='_RECURL'/>"><img src="../site5/mu_14.gif" width="25" height="71" /></a>
列表页加链接(取栏目标题)
<TRS_DOCUMENTS ID="OWNER" AUTOMORE="FALSE" num="35">
<li> <a href='<TRS_DOCUMENT FIELD="_RECURL"/>' target='_blank'><TRS_DOCUMENT FIELD="DOCTITLE"></TRS_DOCUMENT></li>
</TRS_DOCUMENTS>
获取文档内容: <TRS_Document FIELD="DOCCONTENT" AUTOLINK="false" />
您所在的位置<TRS_CURPAGE TARGET="_blank" AUTOLINK="TRUE" ></TRS_CURPAGE>
取文档中附件图片:<TRS_Appendix autolink="true" MEMO="false" mode="pic" INDEX="0" extra='width="103" height="143" border="0"'></TRS_Appendix>
扩展字段:
定价:<TRS_DOCUMENT FIELD="DINGJIA" >60.00</TRS_Document>
浏览次数:<TRS_DOCUMENT FIELD="LIULANCISHU" >350</TRS_Document>
出版日期:<TRS_DOCUMENT FIELD="CHUBANRIQI" >2012-09-12</TRS_Document>
<!-- 幻灯片开始4张文档附件图片轮换 -,将swf插入html中,然后将模板导入就可以,注意图片路径->
<script type=text/javascript>
var focus_width=240;
var focus_height=160;
var text_height=30;
var swf_height = focus_height+text_height;
var pics='<TRS_Documents WHERE="exists(select APPDOCID from WCMAppendix where AppFlag=20 and WCMAppendix.AppDocId=WCMChnlDoc.DocId)" ID="出版社动态" NUM="4"><TRS_Appendix FIELD="_RECURL" MODE="PIC" INDEX="0" upload="true">文档附件</TRS_Appendix>|</TRS_Documents>';
pics = pics.replace(/.$/,"");
var links='<TRS_Documents WHERE="exists(select APPDOCID from WCMAppendix where AppFlag=20 and WCMAppendix.AppDocId=WCMChnlDoc.DocId)" ID="出版社动态" NUM="4"><TRS_Document FIELD="_RECURL">文档链接</TRS_Document>|</TRS_Documents>';
links = links.replace(/.$/,"");
var texts='<TRS_Documents WHERE="exists(select APPDOCID from WCMAppendix where AppFlag=20 and WCMAppendix.AppDocId=WCMChnlDoc.DocId)" ID="出版社动态" NUM="4"><TRS_Document FIELD="docpeople" autolink="false" num="36" >文档标题</TRS_Document>|</TRS_Documents>';
texts = texts.replace(/.$/,"");
document.write('<object ID="focus_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="${root_path}images/hot_new.swf"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">'); document.write('<param name="menu" value="false"><param name=wmode value="opaque">'); document.write('<param name="FlashVars"value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed ID="focus_flash" src="../site5/hot_new.swf" wmode="opaque"FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
document.write('</object>');
</script> <!-- 幻灯片结束 -->
1918

被折叠的 条评论
为什么被折叠?



