Hi,

I'd like to have the forum topics contain a link to the enclosing forum. The default with my installation is that they say "in XXX" where XXX is the correct text but links to the taxonomy_vtn term instead of the forum container. I need something else in node.tpl.php other than $term or to rewrite the function. Although I've done random hacks on the drupal code, I'd appreciate a hint about how to do this properly.
Thanks!!
Peter

Comments

pedrochristopher’s picture

pretty funny - I see that in drupal.org that both the link to forum and the link to the taxonomy term are right there on my/your screen. What I want is "Module development" but I don't want the link to the "Drupal 6.x" for my site (central-america-forum.com).
Thanks ;)

pedrochristopher’s picture

I went to admin/settings/taxonomy_vtn and unchecked "Overwrite links" - then the standard term went to the forum, which is exactly where i wanted it to go.

pedrochristopher’s picture

Well, that solution did a good job on making the forum nodes properly point to their enclosing containers... but then the taxonomy term pseudo node type stopped pointing as it previously had to the aliased URL. I just covered my nose and did this:

<?php   // replace 'taxonomy/terms/42' with 'directory-of-seeds-and-plants'
	       $pattern = '/taxonomy\/term\/42/';
		   $replacement = 'directory-of-seeds-and-plants' ;
		   $terms = preg_replace ( $pattern, $replacement, $terms ) ; 
		print t(' in ') . $terms; ?>