XF 2.1 Need a tab for the What's New page for threads with most replies


Well-known member
On the admin Widgets page, we see this:

(No position)

Widgets with no position will not appear anywhere, but you can call the configured widget instance directly in templates using the <xf:widget key="widget_key" />
I would like to use one of the widgets as a tab in what's new, i.e., added to the whats_new_wrapper template.

If I use a page as the link, e.g., <a class="{$baseClass} {{ $pageSelected == 'find-threads/unanswered' ? {$selectedClass} : '' }}" href="{{ link('find-threads/unanswered') }}" rel="nofollow">No Replies</a>, this works fine.

However, if I try to use the widget syntax in a link, e.g., <a class="{$baseClass} {{ $pageSelected == 'dl6_most_replies' ? {$selectedClass} : '' }}" href="{{xf:widget key="dl6_most_replies" }}">Popular Threads</a>, I just get an Oops syntax error.

I also get an error if I try to use that as a straight link in the navigation bar.

How can I do this?


Well-known member
Alternatively, what I want is a tab on the what's new page that lists threads with most replies. Ideally, to list threads in the past 60 or 30 days..

What's the best way to do that?