Hi,

Thank you for your module, it's great.

I would like to have the ticker to display links to the nodes instead of the current tiltles, can you tell me if you have a patch for this or just the code to insert into taxonomy_ticker.module?

Thanks!

ruben

Comments

netlynx’s picture

     $title_link = l($result->title,'node/'.$result->nid);
      $block .= "<div class=\"scrollerContentItem\"><p>$title_link</p></div>";
netlynx’s picture

FInd this code in taxonomy_ticker.module:

    while ( $result = db_fetch_object($results) ) {
      $block .= "<div class=\"scrollerContentItem\"><p>$result->title</p></div>";
    }

and replace with this:

    while ( $result = db_fetch_object($results) ) {
      $title_link = l($result->title,'node/'.$result->nid);
      $block .= "<div class=\"scrollerContentItem\"><p>$title_link</p></div>";
    }

works for me.

mo6’s picture

Status: Active » Fixed

I suppose with the suggestions above this issue is fixed. The 4.7 and cvs versions already link to nodes.

Anonymous’s picture

Status: Fixed » Closed (fixed)