djbaxter
in memoriam 1947-2022
On the admin Widgets page, we see this:
If I use a page as the link, e.g.,
However, if I try to use the widget syntax in a link, e.g.,
I also get an error if I try to use that as a straight link in the navigation bar.
How can I do this?
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.(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" />
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?