开发者

Expression Engine: Category Group Name

开发者 https://www.devze.com 2023-02-24 16:12 出处:网络
Does anyone know how to get the category group name in EE? So something like this... {categories}{category_group_name}: {category_name}{/categor开发者_开发技巧ies}You\'ll have to use the query module

Does anyone know how to get the category group name in EE? So something like this...

{categories}{category_group_name}: {category_name}{/categor开发者_开发技巧ies}


You'll have to use the query module, but it's a quickie:

{categories}
    {exp:query sql="SELECT group_name FROM exp_category_groups WHERE group_id = '{category_group}'"}{group_name}: {/exp:query}
    {category_name}
{/categories}


Unfortunately, your best bet is probably a plugin. It doesn't seem that there's a native way to do this. http://devot-ee.com/add-ons/category-group-name/

0

精彩评论

暂无评论...
验证码 换一张
取 消