账号通
    

账号  

密码  

1721

查看

1

回复
主题:[ICMS]KESION(.net)系列产品V3.0功能讲解四:常用的等号标签整理讲解 [收藏主题]  
科汛官方 当前离线

47268

主题

145

广播

405

粉丝
添加关注
级别:管理员

用户积分:101604 分
登录次数:7935 次
注册时间:2006/12/7
最后登录:2023/12/14
科汛官方 发表于:2015/5/4 10:02:47   | 只看该作者 查看该作者主题 楼主 

V3.0增加了一些实用的等号标签,等号标签格式如:{=标签名称(参数1,参数2…)}


以下整理列出一部分说明:



1.{=Request(param)}  输出url的参数值,如

http://www.kesion.com/?username=tttttt


模板里调用 {=Request(username)} 将输出 tttttt


2.{=RequestNum(param)} 输出Url的参数值,并自动转换为数字,非数字转换为0,如

http://www.kesion.com/?userid=123


模板里调用{=RequestNum(userid)} 输出 123

再比如

http://www.kesion.com/?userid=abc

那么调用 {=RequestNum(userid)} 输出的值是0,因为abc不是数字


3.{=GetCacheConfig(n)} 输出网站的配置信息


n取值为:


0.InstallDir 1.SiteName 2.SiteTitle 3.NeedVerifyCodePage 4.AdminDir 5.Domain 6.WebLogo 7.WebMaster 8.MailFrom 9.MetaKeyWords 10.MetaDescript 11.CopyRight 12、AdFSODir 13、TemplateDir 14.FSOIndex 15.IndexTemplate 16.JSFsoDir 17、FormFsoDir,18、EnableSiteManageCode 19、SiteManageCode 20、AdminExpireTime 21、AdminKeyBoardTF 22、UpFilesDir 23、MailUserName 24、MailPassWord 25、SmtpServer 26、SmtpPort 27、UserSystemTF 28、UserAllowRegTF 29、UserMinChar 30、UserMaxChar 31、EnabledRegField 32、EnableSMS 33、UserRegAddMoney 34、UserRegAddScore 35、UserRegAddPoint 36、noAllowRegUserName 37、UserEmailMutiRegTF 38、SendSMSInterval 39、UserIndexTemplate 40、 ApiAutoCreateUser   41、ApiDefaultGroupID 42、SearchTemplate 43、RwriteExtension 44、AutoCreateIndexTime 45、SpecialIndexTemplate 46、SpecialFsoTF 47、SpecialFsoDir 48、ShowAreaLeval 49、PointName 50、PointUnit  51、DefaultUpFileSize 52、DefaultUpFileType 53、PKIndexTemplate 54、PKContentTemplate 55、PKMoreTemplate 56、OfficialInfo 57、SiteKey 58、UserBindDomain 59、RemoteAnnexTF 60、FtpServerIP 61、FtpServerPort 62、FtpServerUserName 63、FtpServerPassWord 64、FtpRemoteAnnexDir 65、FtpRemoteAnnexUrl 66、FtpRemoteAnnexSize 67、FtpDeleteLocalFile  68、RefreshPauseNum 69、RefreshPauseTime 70、CacheTime 71、InitialDataPerDay

72、3GEnabled 73、3GInstallDir 74、3GSiteName 75、3GLogo 76、3GCopyRight 77、G3UserRegEnable 78、LabelChineseLenTF 79、AutoCreateJSTime 80、IsShowMarketing



如:{=GetCacheConfig(0)} 输出网站的安装目录,{=GetCacheConfig(1)} 输出网站的名称等等。     


4.{=GetRewriteUrl(规则名称)} 输出伪静态URL



如 {=GetRewriteUrl(userlogin)} 输出伪静态后的登录地址


5.栏目相关的等号标签

{=GetClassName(栏目ID)} 输出栏目名称

{=GetClassEName(栏目ID)} 输出栏目英文名称

{=GetClassUrl(栏目ID)} 输出栏目的PC版本URL

{=Get3GClassUrl(栏目ID)} 输出栏目的3G版本URL

{=GetClassInfo(栏目ID,n)} 输出栏目的配置信息

n取值如下:

1、ClassName 2、ClassEname 3、ParentIDPath 4、ClassType 5、ClassDir 6、CreateHtmlFlag 7、AutoCreateType 8、CreateInfoPath 9、CreateInfoFname 10、AddDate 11、ContentTemplate 12、ChannelID 13、ClassPurview 14、DefaultArrGroupID 15、DefaultReadPoint 16、DefaultChargeType 17、DefaultPitchTime 18、DefaultReadTimes 19、DefaultDividePercent 20、AdminPurview 21、Child 22、Depth 23、ParentID 24、Root 25、OrderID 26、PubFlag 27、ClassDomain 28、InfoNum 29、AllowPubInfo 30、AllowPubGroupID  31、PubAddMoney 32、PubAddPoint 33、PubAddScore 34、Content3GTemplate 35、CmtAddScore 36、ShareAddScore  37、SearchTF 38、ShowInTop 39、ShowOn3G 40、ProSpecialID



6.文档相关的等号标签

{=GetItemUrl(模型ID,文档ID)} 输出指定文档的URL

{=GetItemInfo(模型ID,文档ID,字段名称)} 输出指定文档指定字段的值 


7.{=GetVote(项目ID)} 输出投票选项

8.{=GetPK(项目ID)} 输出PK项目

9.{=GetLogo(宽,高)} 输出网站的LOGO,带链接

10.{=GetAdvertise(广告位ID)} 输出指定广告位的广告

11.{=Execute(SQL语句)}  输出指定SQL语句的返回值,如

{=Execute(select count(1) From KS_User)} 输出网站的会员总人数

 
KesionCMS,,
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
mt56 当前离线

4985

主题

53

广播

17

粉丝
添加关注
级别:版主

用户积分:23430 分
登录次数:1621 次
注册时间:2007/2/10
最后登录:2022/9/28
mt56 发表于:2015/5/24 21:30:40   | 只看该作者 查看该作者主题 沙发 
科汛在线网校系统

本日更新条目(全网数据总量,含文章、下载、论坛、问答、图片等总和)

总文章数量(包括自定义模型在内的所有文章类总和

请问怎么调用?这个会了,下载也就会了。

 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.09375秒 powered by KesionCMS 9.0