As described on the Drigg forums (http://www.drigg-code.org/node/734), some sites would work best if they showed only the category name in the title.

This can be partially accomplished by using the string override functionality described by Merc here: http://www.drigg-code.org/node/22#comment-2 and setting "Published scoops", etc to the empty string.

However, there are hard-coded hyphens in the drigg_ui code, generated on or near line 366, in the drigg_ui_node_list function:

  . . .
  if ($action == 'archived') {
    $page_title = t('Archived scoops');
  }
  if ($category != '') {
    $page_title .= " - ". drigg_section_name_by_safe_name($category);
  }

I have wrapped this last if statement with a check for whether $page_title has any contents, like:

  if ($action == 'archived') {
    $page_title = t('Archived scoops');
  }
  if ($category != '') {
    if ($page_title != '') {
        $page_title .= " - ". drigg_section_name_by_safe_name($category);
    }
    else {
        $page_title .= drigg_section_name_by_safe_name($category);
    }
  }

Patch attached. I'm completely open to other ideas for solving the problem, but this at least works.

adéu,
Mateu

CommentFileSizeAuthor
cats-only.patch538 bytesmateu_b