ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Show category group name on the publish page

June 29, 2007 5:32pm

Subscribe [2]
  • #1 / Jun 29, 2007 5:32pm

    RealityDesign

    70 posts

    Right now I have 10 category groups and about 300 categories.  Obviously, this makes adding new articles fairly tricky.  The hardest part is remembering which category group I’m looking at.

    For example, “Porsche” could be the name of two different categories.  The porsche category in the “News by Company” category group, and the porsche category in the “News by Make” category group.

    On the publish page, category groups are just seperated by some dashes (”———”).  Is there any way to have the seperator show the NAME of the category group?  For example, “——-News by Make——-” instead of just “———” ?

    Any help would be much appreciated.

  • #2 / Jul 05, 2007 6:20pm

    RealityDesign

    70 posts

    anyone?

  • #3 / Jul 06, 2007 5:43am

    silenz

    1651 posts

    You’d have to apply a hack to cp.publish.php
    In the function category_tree() find the line:

    $this->categories[] = $DSP->input_select_option('', '-------');

    and replace it with

    $q = $DB->query("SELECT group_name FROM exp_category_groups WHERE group_id='".$val['2']."';"); 
    $this->categories[] = $DSP->input_select_option('', '--- '.$q->row['group_name'].' ---');

    But I’d rather post a feature request ...

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases