iwms网奇内容管理系统函数新版.docx
- 文档编号:6668789
- 上传时间:2023-01-08
- 格式:DOCX
- 页数:22
- 大小:26.07KB
iwms网奇内容管理系统函数新版.docx
《iwms网奇内容管理系统函数新版.docx》由会员分享,可在线阅读,更多相关《iwms网奇内容管理系统函数新版.docx(22页珍藏版)》请在冰豆网上搜索。
iwms网奇内容管理系统函数新版
注:
长度限制以英文为标准,一个中文字符长度为2,一个英文字符长度为1)
stringTopList(Int32id,stringtype,stringtoptype,Int32topNum,Int32maxLength,boolshowClass,boolshowHits,boolshowDate,boolshowNew,boolshowAuthor,boolremarkLink,boolalternat)
stringTopList(Int32id,stringtype,stringtoptype,Int32topNum,Int32maxLength,boolshowClass,boolshowHits,boolshowDate,boolshowNew,boolshowAuthor,boolremarkLink)
stringTopList(Int32id,stringtype,stringtoptype,Int32topNum,Int32maxLength,boolshowClass,boolshowHits,boolshowDate,boolshowNew,boolshowAuthor)
stringTopList(Int32id,stringtoptype,Int32topNum,Int32maxLength,boolshowClass,boolshowHits,boolshowDate,boolshowNew,boolshowAuthor)
stringTopList(stringtoptype,Int32topNum,Int32maxLength,boolshowClass,boolshowHits,boolshowDate,boolshowNew,boolshowAuthor)
此函数按指定方式调用指定类型的新闻
id为要调用新闻的分类或专题或会员ID
type为要调用新闻类型,"sort"为分类新闻,"topic"为专题新闻,"member"为会员新闻
toptype为调用类型,"hot"为热门新闻,"new"为最新添加新闻,"weekhot"为本周热门新闻,"dayhot"为本日热门新闻
topNum为调用新闻数量
maxLength为新闻标题长度限制
showClass设置是否显示新闻所在分类的连接
showHits设置是否显示新闻点击数
showDate设置是否显示新闻日期
showNew设置是否在新闻添加新闻后显示new图标
showAuthor设置是否显示新闻作者
remarkLink设置是否显示新闻评论链接(还取决于新闻的属性)
alternat设置是否用间隔颜色显示新闻标题
stringTopList(stringcids,Int32topNum,Int32maxLength,boolshowClass,boolshowHits,boolshowDate,boolshowNew,boolshowAuthor,boolremarkLink,boolalternat)
stringTopList(stringcids,Int32topNum,Int32maxLength,boolshowClass,boolshowHits,boolshowDate,boolshowNew,boolshowAuthor,boolremarkLink)
此函数按指定方式显示指定多个分类的最新添加新闻
cids为要调用新闻的分类ID,多个分类请用","分隔,如"1,2,3"
topNum为调用新闻数量
maxLength为新闻标题长度限制
showClass设置是否显示新闻所在分类的连接
showHits设置是否显示新闻点击数
showDate设置是否显示新闻日期
showNew设置是否在新闻添加新闻后显示new图标
showAuthor设置是否显示新闻作者
remarkLink设置是否显示新闻评论链接(还取决于新闻的属性)
alternat设置是否用间隔颜色显示新闻标题
stringTopListSummary(Int32id,stringtype,stringtoptype,Int32topNum,boolshowHits)
stringTopListSummary(Int32id,stringtoptype,Int32topNum,boolshowHits)
此函数按简介方式调用指定分类的新闻
id为要调用新闻的一级分类ID
type为要调用新闻类型,"sort"为分类新闻,"topic"为专题新闻,"member"为会员新闻
toptype为调用类型,"hot"为热门新闻,"new"为最新添加新闻,"weekhot"为本周热门新闻,"dayhot"为本日热门新闻
topNum为调用新闻数量
showHits设置是否显示新闻点击数
stringTopListSummary(Int32cids, Int32topNum,boolshowHits)
此函数按简介方式显示指定分类多个分类的最新添加新闻
cids为要调用新闻分类ID,多个分类请用","分隔,如"1,2,3"
topNum为调用新闻数量
showHits设置是否显示新闻点击数
stringKeyNewsList(stringkey,Int32topNum,Int32maxLength,boolshowClass,boolshowHits,boolshowDate,boolshowNew,boolshowAuthor,boolremarkLink)
stringKeyNewsList(stringkey,Int32topNum,Int32maxLength,boolshowClass,boolshowHits,boolshowDate,boolshowNew,boolshowAuthor)
stringKeyNewsList(stringkey,Int32topNum,Int32maxLength,boolshowClass,boolshowHits,boolshowDate,boolshowNew)
stringKeyNewsList(stringkey,Int32topNum,Int32maxLength,boolshowClass,boolshowHits,boolshowDate)
stringKeyNewsList(stringkey,Int32topNum,Int32maxLength,boolshowClass,boolshowHits)
stringKeyNewsList(stringkey,Int32topNum,Int32maxLength,boolshowClass)
stringKeyNewsList(stringkey,Int32topNum,Int32maxLength)
此函数显示指定相关新闻的新闻
key为相关新闻的关键字
topNum为调用新闻数量
maxLength为新闻标题长度限制
showClass设置是否显示新闻所在分类的连接
showHits设置是否显示新闻点击数
showDate设置是否显示新闻日期
showNew设置是否在新闻添加新闻后显示new图标
showAuthor设置是否显示新闻作者
remarkLink设置是否显示新闻评论链接(还取决于新闻的属性)
stringImgTopList(Int32classID,Int32topNum,Int32cols,stringimgAlign,boolshowSummary,boolshowHits,boolshowTitle,inttitleLength)
stringImgTopList(Int32classID,Int32topNum,Int32cols,stringimgAlign,boolshowSummary,boolshowHits,boolshowTitle)
stringImgTopList(Int32classID,Int32topNum,Int32cols,stringimgAlign,boolshowSummary,boolshowHits)
stringImgTopList(Int32classID,Int32topNum,Int32cols)
stringImgTopList(Int32topNum,Int32cols)
stringImgTopList(Int32topNum)
此函数按指定方式显示指定分类的最新图片新闻
classID指定分类
topNum调用数量
cols显示多少列
imgAlign图片位置,"left"为左,"right"为右(showSummary为true时有用)
showSummary是否显示图片简介
showHits是否显示新闻点击数
showTitle是否显示新闻标题
titleLength是标题限制到此长度
stringImgTopList(stringcIDs,Int32topNum,Int32cols,stringimgAlign,boolshowSummary,boolshowHits,boolshowTitle,inttitleLength)
stringImgTopList(stringcIDs,Int32topNum,Int32cols,stringimgAlign,boolshowSummary,boolshowHits,boolshowTitle)
stringImgTopList(Int32cIDs,Int32topNum,Int32cols,stringimgAlign,boolshowSummary,boolshowHits)
stringImgTopList(Int32cIDs,Int32topNum,Int32cols)
此函数按指定方式显示指定多个分类的最新图片新闻
cIDs指定分类,多个分类请用","分隔,如"1,2,3"
topNum调用数量
cols显示多少列(showSummary为false时有用)
imgAlign图片位置,"left"为左,"right"为右(showSummary为true时有用)
showSummary是否显示图片简介
showHits是否显示新闻点击数
showTitle是否显示新闻标题
titleLength是标题限制到此长度
stringHeadline(inttopNum,intmaxLength,boolshowSort,boolshowDate,boolalternat,intcols,boolfirstSummary)
此函数显示头条文字新闻
topNom为调用新闻数量
maxLength为新闻标题长度限制
showSort为是否显示分类链接
showDate为是否显示日期
alternat设置是否用间隔颜色显示新闻标题
cols分几列显示新闻标题
firstSummary第一个头条新闻是否显示简介
stringHeadlineSummary(inttopNum)
此函数简介方式显示头条文字新闻
topNom为调用新闻数量
stringImgHeadline(inttopNum,stringtype,intwidth,boolshowTitle,inttitleLength)
stringImgHeadline(inttopNum,stringtype,intwidth,boolshowTitle)
stringImgHeadline(inttopNum,stringtype,intwidth)
此函数显示头条图片新闻
topNum为调用新闻数量
type为排列方式,"horizon"为横排,"verticle"为竖排,"summary_left"为在左边显示简介,"summary_right"为在右边显示简介
width为每个新闻占用宽度
showTitle是否显示新闻标题
titleLength是标题限制长度
stringGetLinks(stringsIds,intcols, boolimgLink)
stringGetLinks(intsId,intcols, boolimgLink)
stringGetLinks(intcols,boolimgLink)
stringGetLinks(stringdirection,boolimgLink)
此函数显示指定分类友情链接
sIds为指定多个分类id,","分隔
sId为指定链接分类
cols为每行显示链接数
direction为指定横向或竖向显示,"h"为横向,"v"为竖向
imgLink为显示图片链接还是文本连接
voidRelateNews(intnum,intmaxLength,boolshowDate,intcols)
voidRelateNews(intnum,intmaxLength,boolshowDate)
voidRelateNews(intnum,intmaxLength)
此函数在新闻显示页取相关新闻,在show.aspx文件内
num为显示相关新闻数
maxLength为新闻标题长度限制
showDate为是否显示添加日期
cols分几列显示
voidRemarks(intnum,intmaxLength)
此函数在新闻显示页取评论,在show.aspx文件内
num为显示评论数
maxLength为评论长度限制
string GetSortName(intsortId)
此函数返回指定id的分类名
sortId为指定分类id
string GetSortChild(int sortId,intnum,stringseparator)
此函数返回指定分类下级分类链接
sortId为指定分类id
num为显示子类个数
separator为子类间分隔字符
void BindLeftNav(int classid,boolhideNonChild)
此函数在分类页绑定左侧分类导航
class为指定分类id
hideNonChild为是否隐藏当前分类的同级分类
void BindRemarks(intnum)
void BindRemarks()
此函数在新闻页绑定评论显示
num为显示评论数
iwms网奇cms函数例举及参数
新闻标题间隔添加虚线效果
以index1.aspx为例:
--所有分类的最新新闻-->
找到:
Repeaterid="rpClass" runat="server"> 1pxdashed#f00"> <%#NewsTitle((System.Data.DataRowView)Container.DataItem,33)%> "gray": "time"%>"><%#String.Format("{0: MM-dd}",DataBinder.Eval(Container.DataItem,"dateandtime"))%>
Repeater>
红色是添加部分(也可以添加样式表)
函数例举:
GetLinks类:
此函数显示指定分类友情链接
例一:
<%=GetLinks(20,10,imgLink)%>
例二:
<%=GetLinks(10,"h",imgLink)%>
例三:
<%=GetLinks(10,imgLink)%>
例四:
<%=GetLinks("h",imgLink)%>
20为指定链接分类
10为每行显示链接数
"h"为指定横向或竖向显示,"h"为横向,"v"为竖向
imgLink为显示图片链接还是文本连接.......(调用时必须用false或true替换)
TopList类:
此函数按指定方式调用指定类型的新闻
3.2版本(4.0仍可使用)
例一:
<%=TopList(sortID,"sort","new",10,20,showClass,showHits,showDate,showNew,showAuthor,remarkLink)%>
例二:
<%=TopList(sortID,"sort","new",10,20,showClass,showHits,showDate,showNew,showAuthor)%>
例三:
<%=TopList(sortID,"new",10,20,showClass,showHits,showDate,showNew,showAuthor)%>
例四:
<%=TopList("new",10,20,showClass,showHits,showDate,showNew,showAuthor)%>
sortID为要调用新闻的分类或专题或会员ID.(sortID代表的是所在分类的全部的分类新闻,也可以为数字.数字是分类的ID数字)
sort为要调用新闻类型,"sort"为分类新闻,"topic"为专题新闻,"member"为会员新闻
new为调用类型,"hot"为热门新闻,"new"为最新添加新闻,"weekhot"为本周热门新闻,"dayhot"为本日热门新闻
10为调用新闻数量
20为新闻标题长度限制
showClass设置是否显示新闻所在分类的连接.......(调用时必须用false或true替换)
showHits设置是否显示新闻点击数..............(调用时必须用false或true替换)
showDate设置是否显示新闻日期...(调用时必须用false或true替换)
showNew设置是否在新闻添加新闻后显示new图标...(调用时必须用false或true替换)
showAuthor设置是否显示新闻作者...(调用时必须用false或true替换)
remarkLink设置是否显示新闻评论链接(还取决于新闻的属性)...(调用时必须用false或true替换)(false为否.true为是)
4.0版本(增强功能版本)
例一:
<%=TopList(sortID,"sort","hot",8,20,showClass,showHits,showDate,showNew,showAuthor,remarkLink,alternat)%>
例二:
<%=TopList(sortID,"sort","hot",8,20,showClass,showHits,showDate,showNew,showAuthor,remarkLink)%>
例三:
<%=TopList(sortID,"sort","hot",8,20,showClass,showHits,showDate,showNew,showAuthor)%>
例四:
<%=TopList(sortID,"sort",8,20,showClass,showHits,showDate,showNew,showAuthor)%>
例五:
<%=TopList("hot",8,20,showClass,showHits,showDate,showNew,showAuthor)%>
sortID为要调用新闻的分类或专题或会员ID.(sortID代表的是所在分类的全部的分类新闻,也可以为数字.数字是分类的ID数字)
sort为要调用新闻类型,"sort"为分类新闻,"topic"为专题新闻,"member"为会员新闻
hot为调用类型,"hot"为热门新闻,"new"为最新添加新闻,"weekhot"为本周热门新闻,"dayhot"为本日热门新闻
8为调用新闻数量
20为新闻标题长度限制
showClass设置是否显示新闻所在分类的连接...(调用时必须用false或true替换)
showHits设置是否显示新闻点击数...(调用时必须用false或true替换)
showDate设置是否显示新闻日期...(调用时必须用false或true替换)
showNew设置是否在新闻添加新闻后显示new图标...(调用时必须用false或true替换)
showAuthor设置是否显示新闻作者...(调用时必须用false或true替换)
remarkLink设置是否显示新闻评论链接(还取决于新闻的属性)...(调用时必须用false或true替换)
alternat设置是否用间隔颜色显示新闻标题...(调用时必须用false或true替换)(false为否.true为是)
TopList类:
此函数按指定方式显示指定多个分类的最新添加新闻
3.2版本(4.0仍可使用)
例:
<%=TopList("1,2,3",10,20,showClass,showHits,showDate,showNew,showAuthor,remarkLink)%>
1,2,3为要调用新闻的分类ID,多个分类请用","分隔,如"1,2,3"
topNum为调用新闻数量maxLength为新闻标题长度限制
showClass设置是否显示新闻所在分类的连接.......(调用时必须用false或true替换)
sho
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- iwms 内容管理 系统 函数 新版
![提示](https://static.bdocx.com/images/bang_tan.gif)