XF 2.1 Widget doesn't work inside a Notice?

easiii

Well-known member
Licensed customer
Hey guys,
Quick question, I have a small widget that I would like to include in a Notice system. I've used the widget-key code but it doesn't render. Is there any way to make a widget render inside a notice?
 
get the notice id number and in template: notice_macros add the widget key under {$contentHtml|raw}

e.g.
Code:
{$contentHtml|raw}
             <xf:if is="$notice.notice_id =='xx'">
                 <xf:widget key="your_widget" />
            </xf:if>
 
Back
Top Bottom