欢迎来到 54818模板网!这是一个yzmcms的模板分享站。

获取栏目信息函数 get_category()

相关案例演示

get_category($catid = '', $parameter = '')
参数返回
$catid 为 int

字符串string;

$parameter 为空时 返回当前$catid栏目数组array;

$catid为空时 返回全部栏目数组array;

$parameter 为 string


示例:{get_category(1, 'pclink')}  //获取ID为1的栏目的URL地址。
用途标签
栏目名称{get_category(1, 'catname')},还可以用{get_catname($catid)}获取。
栏目模型ID{get_category(1, 'modelid')}
上一级栏目ID{get_category(1, 'parentid')}
所有上级栏目ID{get_category(1, 'arrparentid')} , 例如:0,21
子栏目ID{get_category(1, 'arrchildid')}
英文目录(栏目路径){get_category(1, 'catdir')}
栏目图片{get_category(1, 'catimg')}
链接类型{get_category(1, 'type')},0为栏目,1为单页,2为超链接
栏目排序{get_category(1, 'listorder')}
是否允许投稿{get_category(1, 'member_publish')},0为否,1为是
在导航显示{get_category(1, 'display')},0为否,1为是
栏目路径
{get_category(1, 'pclink')},例如:https://www.54818.cn/mianfeimoban/
手机版地址{get_category(1, 'moblink')}
栏目副标题{get_category(1, 'subtitle')}
手机版名称{get_category(1, 'mobname')}
URL规则{get_category(1, 'category_urlrule')}
频道页模板{get_category(1, 'category_template')},例如:category_article
列表页模板{get_category(1, 'list_template')},例如:list_article
内容页模板{get_category(1, 'show_template')},例如:show_article
SEO栏目标题{get_category(1, 'seo_title')}
SEO栏目关键词{get_category(1, 'seo_keywords')}
SEO栏目描述{get_category(1, 'seo_description')}



    作者:54818模板网 关注:1672 时间:2019-08-31 22:22:14
    相关网站教程