独立模块栏目函数:
dr_cat_value("模块目录", 栏目ID, "输出字段")
共享模块栏目函数:
dr_share_cat_value(栏目ID, "输出字段")
用法举例:
1、调用指定共享栏目ID999的信息
栏目名称:{dr_share_cat_value(999, 'name')} 栏目地址:{dr_share_cat_value(999, 'url')} 栏目单页内容:{dr_share_cat_value(999, 'content')} 缩略图:{dr_get_file(dr_share_cat_value(999, 'thumb'))} 栏目的数据量:{dr_share_cat_value(999, 'total')}
2、调用指定news模块的栏目ID999的信息
栏目名称:{dr_cat_value('news', 999, 'name')} 栏目地址:{dr_cat_value('news', 999, 'url')} 缩略图:{dr_get_file(dr_cat_value('news', 999, 'thumb'))} 栏目的数据量:{dr_cat_value('news', 999, 'total')}