Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
tedbowchanging title to be more descriptive
Comment #2
troky CreditAttribution: troky commentedYes, that is expected behavior.
No plans to make main topic 'sticky', but if someone provide nice patch...
Comment #3
tedbowJust 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?
Comment #4
tedbowSorry, changing to active to see if I could get support advice on the possible solutions in #3
Comment #5
troky CreditAttribution: troky commentedcopy post.tpl to post-repeated.tpl
or change
to: