Other url than taxonomy/term for introduction field

Summit - December 14, 2007 - 12:10
Project:Taxonomy Introduction
Version:5.x-1.0
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,

I have a different url then taxonomy/term for which I would like to show the taxonomy introduction field.
Next to this I have in the url the term-names, so I think they have to be altered to TID's;

My url is www.gratis-informatie.nl/over/kerst/nederland
/over/ is a panel. argument1 = kerst = a term name. argument2 = also term name, but for now ok to leave it out off function.

I tried underneath code, but it doesn't work.
Can you help please?

Thanks in advance!

Altered code is function taxonomy_intro_help

function taxonomy_intro_help($section) {
          if (arg(0) == 'over' && !empty($_GET['over'])) {
          $output = '';
          $tmpterms_0 = taxonomy_get_term_by_name(arg(1));
  $intro = taxonomy_intro_get_intro($tmpterms_0[0]->tid);
  if ($intro->intro != '')
  {
  $output .= '<div class="term-intro">'.check_markup($intro->intro,$intro->format, false).'</div>';
      }
    break;
      }
   
if (arg(0) == 'taxonomy' && empty($_GET['from'])) {
switch (arg(1)) {
case 'term':
$output = '';
$intro = taxonomy_intro_get_intro(arg(2));
if ($intro->intro != '')
{
$output .= '<div class="term-intro">'.check_markup($intro->intro,$intro->format, false).'</div>';
}
break;
}

   switch ($section) {
      case 'admin/help#taxonomy_intro':
        $output .= t('<p>This module can be used to output an intro of the current taxonomy term at term pages.</p>');
        break;
        }
   
    }       
      return $output;


}

The peace from
if (arg(0) == 'over' && !empty($_GET['over'])) { .......
break;

Is not working.. Please help me I really would like the taxonomy introduction text underneath the breadcrumb on these pages.
Thanks in advance for your reply!

Greetings,
Martijn

 
 

Drupal is a registered trademark of Dries Buytaert.