模型属性和方法

最后更新: | 浏览次数: 1140|前端开发

分类页属性

属性名称  属性说明  返回类型 是否支持
内容 分类 首页 搜索页 标签页
Name 当前页面名称 String          
FriendlyName 当前页面友好名称 String         -
Alias 当前页面Url别名 String          
Thumb 当前页面第一张缩略图 String          
Title 当前页面标题  String          
Description 当前页面描述  String          
Id 当前页面Id Int     0 0  
RootId 当前页面一级分类Id Int     0 0 0
CategoryId 当前页面所属分类Id Int     0 0 0
CurrentCategory 当前页面分类信息 CategoryBase          
CanonicalUrl 当前页面权威Url  String          
CurrentUrl 当前页面Url  String          
CreateTime 当前页面创建时间 Time          
IsEnableIndex 当前页面是否允许索引 boolean          
               
Thumbs 当前页面缩略图列表  List<PhotoItem>     × × ×
ThumbCaption 当前页面第一张缩略图alt文字 String     × × ×
ParentId 当前页面父类分类Id 分类     0 0 0
Content 当前页面内容  HtmlString     × ×  
Video 当前页面视频地址  string     × × ×
VideoPoster 页面视频封面图片地址  string     × × ×
RelatedArticles 当前页面关联文章 List<ArticleBase>     × × ×
RelatedProducts 当前页面关联产品 List<ProductBase>     × × ×
List 当前页面内容  List<Content> ×   × × ×
JumpUrl 当前页面跳转地址 String     × × ×
File 当前页面第一个附件 FileltemModel     × × ×
FileList 当前页面附件列表 List<FilelemModel>     × × ×
FileCount 当前页面附件总数 Int     × × ×
HasChilds 当前页面是否有分类  Boolean ×   × × ×
ModifiedTime 当前页面编辑时间 Time ×   × × ×
IsOpenBlank 当前页面是否新标签页打开  Boolean ×   × × ×
IsWideMenu 当前页面是否宽屏显示菜单  Boolean ×   × × ×
ShowChildMenu 当前页面是否显示子菜单  Boolean ×   × × ×
ShowContentMenu 当前页面是否显示内容菜单  Boolean ×   × × ×
Attributes 当前页面属性分类 List<sss>     × × ×
               
FieldList 内容所有扩展字段  Dictionary<string,string>   × × × ×
ContentNavList 内容结构 List<ContentNavModel>   × × × ×
Tags 内容标签 List<TagBase>   × × × ×
Visit 内容查看次数  Int   × × × ×
IsTop 内容是否置顶  Boolean   × ×    
IsHot 内容是否热门  Boolean   × × × ×
IsRcommend 内容是否推荐 Boolean   × × × ×
               
Number 产品编号  String   × × × ×
SubName 产品副标题  String   × × × ×
Price 产品价格  Decimal   × × × ×
Unit 产品单位  String   × × × ×
Ad 产品广告词 String   × ×    
Stock 产品库存  Int   × × × ×
SaleCount 产品销量  Int   × × × ×
IsNew 产品是否新品  Boolean   × × × ×
IsPromotion 产品是否促销  Boolean   × × × ×
Gallery 产品画集图册 ThumbList   × × × ×
ProductBrand 产品品牌  String   × × × ×
RatingValue 产品评分  String   × × × ×
SaleCount 产品销量 Int   × × × ×
SKU 产品SKU  String   × × × ×
Mpn 产品制造商编号  String   × × × ×
               
IsHead 文章是否头条  Boolean   × × × ×
               
GetType              
IsNoFolllow 是否不追踪            
NodeList              
SortLink              
SortUrl 生产排序链接            
ToString              
OgType              
Depth  分类深度  Int          
EnableComment 是否允许评论  Boolean   × × × ×
AttributeGroupId  页面分类属性组Id            
ReviewName 表示将在运行时解析其操作的对象 Dynamic          

分类页方法

方法名 说明 是否支持
内容 分类 首页 搜索页 标签页
Banner(string viewPath = null) 获取当前页面Banner图片     × × ×
BreadCrumb(string cssClass = null, bool self = true) 生成当前页面面包屑导航     ×    
AttriuteUrl(int attributeId, int valueId) 生成当前页面属性值链接 × × × × ×
AttributeIgnoreUrl(int attributeId) 取消当前页面属性选择链接 × × × × ×
PagingSimple(string cssClass = "pager", string prevText = "《", string nextText = "》") 生成当前页面简单上下页 ×   ×    
Paging(string cssClass = "pagination", int pageItem = 10, string prevText = "《", string nextText = "》") 生成当前页面列表 ×   ×    
GetUnions(int top) 取当前页面前后各N条数据,如Top值为2,则取前后各2条。共4条记录   × × × ×
Download(string field) 下载当前页面的第一个附件   × × × ×
GetPrevs(int top) 取当前页面前N条记录   × × × ×
GetNexts(int top) 取当前页面后N条记录   × × × ×
Prev() 当前页面上一条内容   × × × ×
PrevUrl() 当前页面上一条内容Url   × × × ×
Next() 当前页面下一个内容   × × × ×
NextUrl() 当前页面下一个内容Url   × × × ×