How to disable links?

Alex72RM - May 25, 2009 - 09:00
Project:Tagadelic
Version:6.x-1.2
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi everyone,

It should be great if the taxonomy links shown into a tagadelic content can be disabled, to render a static page/block.

Is it possible?

#1

Bartezz - June 10, 2009 - 11:29

How about this:

/**
* theme function that renders the HTML for the tags
* @ingroup themable
*/
function phptemplate_tagadelic_weighted($terms) {
$output = '';
foreach ($terms as $term) {
//output .= l($term->name, taxonomy_term_path($term), array('attributes' => array('class' => "tagadelic level$term->weight", 'rel' => 'tag'))) ." \n";
$output .= "<span class=\"tagadelic level$term->weight\">".$term->name."</span>\n";
}
return $output;
}

Place it in your template.php

#2

Bèr Kessels - September 22, 2009 - 11:33
Status:active» fixed

Is possible in the theme.

#3

System Message - October 6, 2009 - 11:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.