Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, brilliant theme, many thanks in advance.
I would like to achieve the following exactly, not colors but layout of taxonomy as per the attached files. The one i would like to achieve with Newsflash is inspired from Inf08 theme. Kindly advise how can I achieve this, thank you very much.
kindly note that I am not expert, but if you can guide me, I will do exactly as told, thank you in advance.
Best regards
Danish
Comment | File | Size | Author |
---|---|---|---|
#1 | Taxonomy tags Inf08 theme inspired.png | 34.46 KB | macrodesign |
#1 | Taxonomy tags current Newsflash theme.png | 42.86 KB | macrodesign |
Comments
Comment #1
macrodesign CreditAttribution: macrodesign commentedattachments
Comment #2
macrodesign CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: macrodesign commentedany one please?
Comment #5
macrodesign CreditAttribution: macrodesign commentedanyone??? help please
Comment #6
Kisugi Ai CreditAttribution: Kisugi Ai commentedclosed -- issue fixed for 2 weeks with no activity.