Closed (fixed)
Project:
NewsFlash
Version:
6.x-1.6
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Sep 2009 at 18:29 UTC
Updated:
23 Oct 2011 at 22:17 UTC
Jump to comment: Most recent file
Comments
Comment #1
macrodesign commentedattachments
Comment #2
macrodesign commentedI posted a request at Inf08 #567186: How to achieve this? and got a quick reply; please read and advise how can I use it with Newsflash.
n.b. please note that I can only follow what you can guide me, cannot write my own code
[Reply]
The code around 144~190 is as follows:
// format taxonomy list, code adapted from "Acquia Marina" theme
if (module_exists('taxonomy')) {
$vocabularies = taxonomy_get_vocabularies($vars['node']->type);
$output = '';
$vocab_delimiter = '';
$category_content_type = (theme_get_setting('category_enable_content_type') == 1) ? $vars['node']->type : 'default';
$category_setting = theme_get_setting('category_'. $category_content_type);
foreach ($vocabularies as $vocabulary) {
$terms = taxonomy_node_get_terms_by_vocabulary($vars['node'], $vocabulary->vid);
if ($terms) {
if ($vocabulary->vid != $category_setting) {
$output .= '
$links = array();
foreach ($terms as $term) {
$links[] = l($term->name, taxonomy_term_path($term), array('attributes' => array('rel' => 'tag', 'title' => strip_tags($term->description))));
}
$output .= implode(", ", $links);
$output .= '
';
}
// Special case for vocabulary named "Category"
else {
$links = array();
foreach ($terms as $term) {
$links[] = l($term->name, taxonomy_term_path($term), array('attributes' => array('rel' => 'tag', 'title' => strip_tags($term->description))));
}
$category .= implode(", ", $links);
$vars['category'] = t(' in ') . $category;
}
}
}
if ($output != '') {
$output = '
'. $output .'
';
}
$vars['terms'] = $output;
}
else {
$vars['terms'] = '';
}
}
Comment #3
macrodesign commentedsorry to mark this urgent / critical to get someone's attention as I will be traveling in 3 days and won't be back to work until 1 month; kindly help me.
Comment #4
macrodesign commentedany one please?
Comment #5
macrodesign commentedanyone??? help please
Comment #6
kisugiai commentedclosed -- issue fixed for 2 weeks with no activity.