php抓取栏目id,phpcms v9 根据栏目id( catid ) 获取栏目名称

phpcms v9 根据栏目id( catid ) 获取栏目名称、url等等

调用方法:

{$CATEGORYS[栏目ID][catname]}

注意别掉了“S”。

以此类推,调用url:

{$CATEGORYS[栏目ID][url]}

除了url外,还有一些其它的属性也可以参考:

array (

"catid' => '26',

'siteid' => '2',

'type' => '0',

'modelid' => '18',

'parentid' => '24',

'arrparentid' => '0,24',

'child' => '0',

'arrchildid' => '26',

'catname' => '网络营销案例',

'style' => '',

'image' => '',

'description' => '',

'parentdir' => '/',

'catdir' => 'wangluoyingxiao',

'url' => 'http://www.zeroplace.cn/cms/index.php?m=content&c=index&a=lists&catid=26',

'items' => '0',

'hits' => '0',

'setting' => 'array (

\'workflowid\' => \'\',

\'ishtml\' => \'0\',

\'content_ishtml\' => \'0\',

\'create_to_html_root\' => \'0\',

\'template_list\' => \'site\',

\'category_template\' => \'category\',

\'list_template\' => \'list\',

\'show_template\' => \'show\',

\'meta_title\' => \'\',

\'meta_keywords\' => \'\',

\'meta_description\' => \'\',

\'presentpoint\' => \'1\',

\'defaultchargepoint\' => \'0\',

\'paytype\' => \'0\',

\'repeatchargedays\' => \'1\',

\'category_ruleid\' => \'6\',

\'show_ruleid\' => \'16\',

)',

'listorder' => '26',

'ismenu' => '1',

'sethtml' => '0',

'letter' => 'wangluoyingxiaoanli',

'usable_type' => ',56,57,',

'additional' => '',

'commenttypeid' => '0',

'create_to_html_root' => '0',

'ishtml' => '0',

'content_ishtml' => '0',

'category_ruleid' => '6',

'show_ruleid' => '16',

'workflowid' => '',

'isdomain' => '0',

),

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值