It would be good, if not simply normal, for the links created by urlfilter.module to work in the teasers.

With the following patch, the urlfilter.module will work in all new node teasers (i.e. old nodes will have the usual clickable links in the complete node, but not in their teasers).

I changed it as follows, and this seems to work, though more testing is needed. I don't know how to retroactively make this module filter the old nodes.

   return $text;
 
      $output .= "<br>".check_output($node->teaser);
       
      $node->teaser = $output;
   }

Comments

michael_lessard_micles.biz’s picture

My mistake: I thought my little hack had allowed smileys and urlfilter to appear in teasers, but that hack did not work in fact: it seems that smileys and urlfilter appeared in teasers because I had added new Drupal CVS (4.3) files in my Drupal 4.2.

Important : Do not add Drupal CVS (4.3) files in Drupal 4.2.: it can cause serious failures in database queries (i.e. in my case, all nodes were no longer visible because database queries in CVC 4.3. are different than in 4.2).

I set the status to close since I believe the upcoming Drupal 4.3 will make filters appear in teasers.