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.
Just wondering how to remove the exposed sort form that shows up underneath the forum topics when you go to a given forum (accross from the "Form tools" dropdown). Checked out the view, but the sort doesn't seem to be exposed there in the normal way? I saw options to modify the exposed sort, but none to remove it entirely?
A picture's worth 1000 words:
Thanks for any help!
Comments
Comment #1
MichelleInteresting... I looked at the view and was surprised that I couldn't figure it out, either. Possibly it's added in code? Maybe troky will know. I don't have time to delve into the code right now.
Comment #2
thesaint1987 CreditAttribution: thesaint1987 commentedSince I am totally retheming the advanced forum for my site I can tell you how:
Its in the file: "advanced-forum.naked.topic-list-outer-view.tpl.php"
Line 82:
if (!empty($view->sort_form)):
print advanced_forum_forum_topic_list_sort();
endif;
Remove these three lines and its gone...
Comment #3
troky CreditAttribution: troky commentedIt would be better to make your own advanced-forum-topic-list-outer-view.tpl.php with above changes and put it in your theme folder.
Don't mess with AF core templates.. it's bad practice.
Comment #4
JordanMagnuson CreditAttribution: JordanMagnuson commentedThanks for the info.