I think what I am running into is the intended behaviour of forum/advanced forum but just checking and seeing if there is any way I can change this behaviour via configuration, hooks, or tpl files.

When I go to the second page of comments on a forum topic then Main topic(node body) is not shown. This does not happen with other content types.
Is this the correct behaviour? Is there a way to change this so the topic shows at the top even if you are on the second page of comments.

thanks

Comments

tedbow’s picture

Title: Forum topic not show » Forum topic not show on comment pagination

changing title to be more descriptive

troky’s picture

Status: Active » Closed (won't fix)

Yes, that is expected behavior.
No plans to make main topic 'sticky', but if someone provide nice patch...

tedbow’s picture

 // Determine the template file to use for the node.
  if (isset($_GET['page']) && $_GET['page'] > 0) {
    // This is the repeated node on the top of subsequent pages.
    // We send this to a special .tpl so people can adjust it to their needs.
    advanced_forum_add_template_suggestions("post-repeated", $variables);
  }

Just found this in "_advanced_forum_preprocess_node". So I guess if I made my own *.post-repeated.tpl.php I could change it to whatever.Then I could display the topic.

Or if I implemented "hook_preprocess_node" maybe I could override the template suggestion to just use the "post" one.

suggestions on 1 of these approaches?

tedbow’s picture

Status: Closed (won't fix) » Active

Sorry, changing to active to see if I could get support advice on the possible solutions in #3

troky’s picture

Status: Active » Fixed

copy post.tpl to post-repeated.tpl
or change

advanced_forum_add_template_suggestions("post-repeated", $variables);

to:

advanced_forum_add_template_suggestions("post", $variables);

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.