Project:Term Display
Version:5.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Good day
I wish to offer a few improvements (I do not speak English, and this text translated by Google):
-----------
in function "term_display_nodeapi" after "if (isset($node->taxonomy)){" we can insert this:

if($node->title&&$a3!=0){
$node->content['re_title'] = array(
'#weight' => -5, /* default header weight */
'#value' => '

nid).'" title="'.check_plain($node->title).'">'.check_plain($node->title).'

');
$node->title='';
}

as result - we can set weight of term lower then weight of header and term will show before header
-----------
function "theme_term_display_list" and "theme_term_display_custom" we cat unsert next cover:

$output = 'vid.'">';
$output .= '' . check_plain($vocabulary->name) . "\n";
$output .= CODE_GENERATE_TERMS;
$output .= '';
return $output;

as result - in css we can select individual term (or term title) by ID and customize it
-----------
in top of "term_display.module" we can insert string:
drupal_add_css(drupal_get_path('module', 'term_display') .'/term_display.css');
and in "term_display" folder create file "term_display.css" and write in it:
.term-display-block {CSS_STYLES}
.term-display-block .title {CSS_STYLES} etc.

FOR EXAMPLE SEE http://experty.by

AttachmentSize
term_display-5.x-1.x-dev_NXMod.zip3.28 KB

Comments

#1

#2

Thanks for your suggestions. Please submit your proposed changes in the form of a patch, http://drupal.org/patch/create.

nobody click here