Active
Project:
Drigg
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Mar 2009 at 01:30 UTC
Updated:
7 Mar 2009 at 01:30 UTC
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
| Comment | File | Size | Author |
|---|---|---|---|
| cats-only.patch | 538 bytes | mateu_b |