I've searched the site, but can't really find a post that answers the question of how do I change the paging links at the bottom of forum posts in 4.7 beta4.

Currently the previous and next links display the topic subject, but I would prefer a more generic 'next forum topic' 'previous forum topic', exactly like it is on this forum.

Has anyone got any suggestions?

Thanks.

Comments

ant71’s picture

I just noticed within the theme_forum_topic_navigation function which seems to be building the links, the following code;

if ($prev) {
      $output .= l(t('‹ ') . $prev->title, 'node/'. $prev->nid, array('class' => 'topic-previous', 'title' => t('Go to previous forum topic')));
    }
    if ($next) {
      $output .= l($next->title . t(' ›'), 'node/'. $next->nid, array('class' => 'topic-next', 'title' => t('Go to next forum topic')));
    }

I could hack the forum.module file, but I'd much rather overide it in a template.php file.

I've tried following instruction on overiding theme functions (I'm guessing this falls into this category), but nothing is being printed.

heine’s picture

I've tried following instruction on overiding theme functions (I'm guessing this falls into this category), but nothing is being printed.

Can you show what you did?
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

ernestojpg’s picture

Yes! I've the same problem. Also in Drupal 4.7 RC1 next and previous forum topic links (displaying the topic subject so) appear in the node body!!

In Drupal 4.6.x next and previous forum topic links appear in $links variable, not in the node body!

Has anyone got any suggestions?