开发者

Expression Engine: Category Group Name

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜