frm
Well-known member
I wanted "New threads" in "What's new", so I created a Page node to contain the widget.
I put this in the Page node:
But, I can't get it to select the New threads tab in whats_new_wrapper like all other options.
I edited the template
I'm thinking it's that there's an error with
Any help?
Also, the Page node has a route filter of
Thanks
I put this in the Page node:
HTML:
<xf:set var="$pageSelected">new_threads</xf:set>
<xf:wrap template="whats_new_wrapper">
<xf:set var="$pageSelected" value="overview" />
</xf:wrap>
<xf:widget key="whatsNewNewThreads" />
But, I can't get it to select the New threads tab in whats_new_wrapper like all other options.
I edited the template
whats_new_wrapper
and entered this, like all other items appearing in the wrapper:
HTML:
<!--[XF:links:after_featured]-->
<a class="{$baseClass} {{ $pageSelected == 'new_threads' ? {$selectedClass} : '' }}" href="{{ link('whats-new/threads') }}" rel="nofollow">New threads</a>
<!--[XF:links:after_new_threads]-->
I'm thinking it's that there's an error with
<xf:set var="$pageSelected">new_threads</xf:set>
in the Page node to not select the tab or this isn't possible to do, as seen with selecting New posts:Any help?
Also, the Page node has a route filter of
pages/new-threads
to whats-new/threads
.Thanks