1.articleVo
articleList,articleRank,articleDetail 中循环显示内容的地方,循环变量类型为 articleVo,如下:
#articleList({categoryId:1})
#(item) // 此时的循环变量item,实际类型为java的 ArticleVo 对象
#end
articleVo的全部属性如下:
public class ArticleVo {
private Integer id;
private String permalink;
private Integer categoryId;
private String categoryName;
private CategoryVo categoryVo;
private String title;
/**
* 发布时间
*/
private Date publishDate;
/**
* 摘要
*/
private String summary;
private String titleColor;
/**
* 点击量
*/
private Integer click;
/**
* 推荐
*/
private Byte isRecommend;
/**
* 是否前台显示
*/
private Byte isShow;
/**
* 是否进入回收站
*/
private Byte isDelete;
private String keywords;
/**
* 封面配图
*/
private String coverImage;
private String coverImageUrl;
private String coverImageSize;
/**
* 作者
*/
private String author;
/**
* 来源
*/
private String source;
/**
* 发布管理员id
*/
private Integer managerId;
private String content;
private String articleUrl;
private String extJson;
private Map ext;
private Integer sort;
private String tags;
// 上一篇
private ArticleVo previousArticle;
// 下一篇
private ArticleVo nextArticle;
}
2.CategoryVo
public class CategoryVo {
private Integer id;
private String categoryName;
private String categoryUrl;
private Integer sort;
private String keywords;
private String description;
private String content;
private Integer parentId;
private String parentName;
private CategoryVo parentVo;
private CategoryVo topCategoryVo;
private Integer categoryType;
private String categoryTypeString;
private List child;
private Integer totalCount;
private String templateCate;
private String templateList;
private String templateContent;
private Byte enterPage;
private String tags;
private String coverImage;
private String seoDescription;
private String permalink;
private Integer level;
private String extJson;
private Map ext;
}
3.SinglePageVo
public class SinglePageVo {
private Integer id;
private String permalink;
private String name;
private String template;
private String content;
private Date createdAt;
private String seoDescription;
private String seoKeywords;
private Byte isDelete;
private String pageUrl;
}
4.TagVo
public class TagVo {
private Integer id;
private String tagName;
private Byte tagType;
private String tagUrl;
private List categoryVoList;
private List articleVoList;
public String getTagUrl() {
return UrlHelper.getTagListPageUrl(this, CmsUtils.isPreviewMode());
}
}
5.CommentVo
public class CommentVo {
private Integer id;
private Integer articleId;
private Integer accountId;
private Date publishAt;
private Boolean isShow;
private String content;
private String nickname;
private String logo;
private String publishAtStr;
}