XF 2.2 Post thread button to open in overlay in sidenav

JoyFreak

Well-known member
I'm trying to get the overlay to open as expected in forum_view from a sidenav template/widget but not luck.
Code:
    <xf:if is="$xf.visitor.canCreateThread() OR $xf.visitor.canCreateThreadPreReg()">
        <xf:button href="{{ $canCreateThreadInChild ? link('forums/post-thread-chooser', null, {'forum_id': $forum.node_id}) : link('forums/post-thread', $forum) }}" overlay="{$canCreateThreadInChild}" class="button--cta jf_thread_sidebar" style="width:100%;" icon="write">
            {{ phrase('jf_create_thread') }}
        </xf:button>
    </xf:if>
 
Back
Top Bottom