classtypedata
classtypedata 是极致CMS内部栏目的核心数据,全局能够使用这个变量,且含有你想要的栏目里面的所有信息
相关视频教程
视频地址:https://www.bilibili.com/video/av77259782
数据结构
Array
(
//以栏目ID为key的栏目数组
[1] => Array
(
[id] => 1
[classname] => 公司产品
[seo_classname] => 公司产品
[molds] => product
[litpic] =>
[description] =>
[keywords] =>
[body] =>
[orders] => 0
[orderstype] => 1
[isshow] => 1
[iscover] => 0
[pid] => 0
[gid] => 0
[htmlurl] => product
[lists_html] => list.html
[details_html] => details.html
[lists_num] => 9
[comment_num] => 0
[gourl] =>
[ishome] => 1
[isclose] => 0
[gids] =>
[lang] => cn
[haschild] => 1 //是否有下级
[level] => 0 //当前栏目的层级,0表示顶级
[url] => http://demo.jizhicms.cn/product.html
[children] => Array
(
//当前栏目的直系下级ID数组
[id] => Array
(
[0] => 6
[1] => 7
)
//当前栏目的直系下级栏目数组
[list] => Array
(
[0] => Array
(
[id] => 6
[classname] => 免费模板
[seo_classname] => 免费模板
[molds] => product
[litpic] =>
[description] =>
[keywords] =>
[body] =>
[orders] => 0
[orderstype] => 1
[isshow] => 1
[iscover] => 0
[pid] => 1
[gid] => 0
[htmlurl] => free
[lists_html] => list
[details_html] => details
[lists_num] => 9
[comment_num] => 0
[gourl] =>
[ishome] => 1
[isclose] => 0
[gids] =>
[lang] => cn
[haschild] =>
[level] => 1
[url] => http://demo.jizhicms.cn/free.html
[children] => Array
(
//当前栏目的直系下级ID数组
[id] => Array
(
)
//当前栏目的直系下级栏目数组
[list] => Array
(
)
//包含当前栏目和所有下级的栏目ID数组
[ids] => Array
(
[0] => 6
)
//所有下级的栏目数组
[lists] => Array
(
)
)
)
[1] => Array
(
...(栏目内容)
)
)
//包含当前栏目和所有下级的栏目ID数组
[ids] => Array
(
[0] => 1
[1] => 6
[2] => 7
)
//所有下级的栏目数组
[lists] => Array
(
[0] => Array
(
[id] => 6
[classname] => 免费模板
[seo_classname] => 免费模板
[molds] => product
[litpic] =>
[description] =>
[keywords] =>
[body] =>
[orders] => 0
[orderstype] => 1
[isshow] => 1
[iscover] => 0
[pid] => 1
[gid] => 0
[htmlurl] => free
[lists_html] => list
[details_html] => details
[lists_num] => 9
[comment_num] => 0
[gourl] =>
[ishome] => 1
[isclose] => 0
[gids] =>
[lang] => cn
[haschild] =>
[level] => 1
[url] => http://demo.jizhicms.cn/free.html
)
[1] => Array
(
[id] => 7
[classname] => 商业模板
[seo_classname] => 商业模板
[molds] => product
[litpic] =>
[description] =>
[keywords] =>
[body] =>
[orders] => 0
[orderstype] => 1
[isshow] => 1
[iscover] => 0
[pid] => 1
[gid] => 0
[htmlurl] => business
[lists_html] => list
[details_html] => details
[lists_num] => 9
[comment_num] => 0
[gourl] =>
[ishome] => 1
[isclose] => 0
[gids] =>
[lang] => cn
[haschild] =>
[level] => 1
[url] => http://demo.jizhicms.cn/business.html
)
)
)
)
//以栏目ID为key的栏目数组
[6] => Array
(
[id] => 6
[classname] => 免费模板
[seo_classname] => 免费模板
[molds] => product
[litpic] =>
[description] =>
[keywords] =>
[body] =>
[orders] => 0
[orderstype] => 1
[isshow] => 1
[iscover] => 0
[pid] => 1
[gid] => 0
[htmlurl] => free
[lists_html] => list
[details_html] => details
[lists_num] => 9
[comment_num] => 0
[gourl] =>
[ishome] => 1
[isclose] => 0
[gids] =>
[lang] => cn
[haschild] =>
[level] => 1
[url] => http://demo.jizhicms.cn/free.html
[children] => Array
(
[id] => Array
(
)
[list] => Array
(
)
[ids] => Array
(
[0] => 6
)
[lists] => Array
(
)
)
)
...(还有很多同上一样的栏目)
)