栏目模板常用函数说明
所有列表页面模板布局主要分三部分,页头/页中/页底。
页头引用全站通用页头模板
{template 'header.html'}
页中部分为页面主要显示内容
单页面模板主要显示栏目扩展信息中的封面内容。
{$category[$catid]['categorycontent']}
页底引用全站通用页底模板
{template 'footer.html'}
常用函数
栏目名称
{$category[$catid]['catname']}
栏目副标题
{$category[$catid]['subtitle']}
栏目目录名称
{$category[$catid]['htmldir']}
栏目封面内容
{$category[$catid]['categorycontent']}
栏目图片
{$category[$catid]['image']}
栏目网页标题
{$category[$catid]['meta_title']}
栏目网页关键词
{$category[$catid]['keyword']}
栏目网页描述
{$category[$catid]['description']}
当前栏目url
{getcateorygetparent($catid,'url')}
栏目内分页
{if $pages>1} {category_pagination($catid)} {/if}
如需要调取父级栏目信息,请参考:https://www.cmseasy.cn/chm/currency-template/show-646.html
用 CmsEasy 助您「轻松搭建」企业官网。