XF 2.1 Custom Widget in Sidebar

kankan

Well-known member
Hello
I am looking to add a widget on a addon sidebar (Tickets)
Existing code is the following :
Code:
<xf:page option="sideNavTitle">{{ phrase('categories') }}</xf:page>
<xf:sidenav>
    <xf:macro template="nf_tickets_category_list_macros" name="simple_list_block"
              arg-categoryTree="{$categoryTree}"
              arg-categoryExtras="{$categoryExtras}" />
</xf:sidenav>

<xf:widgetpos id="nf_tickets_queue_sidebar" position="sidebar" />

When calling my Widget code as follow :
The widget displays next existing widget.
How to display it below ?

Code:
<xf:page option="sideNavTitle">{{ phrase('categories') }}</xf:page>
<xf:sidenav>
    <xf:macro template="nf_tickets_category_list_macros" name="simple_list_block"
              arg-categoryTree="{$categoryTree}"
              arg-categoryExtras="{$categoryExtras}" />
</xf:sidenav>

<xf:widget key="mywidget" position="sidebar" />

<xf:widgetpos id="nf_tickets_queue_sidebar" position="sidebar" />

2021-03-13 17_34_07.webp

Thanks
 
Back
Top Bottom