[RSS Feed/News] How to pass data/values to <xf:widget>

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Hi,

I'm trying to add a search forum widget to my template by using the xf:widget syntax. My goal is to save the settings for the Widget in custom thread fields. But I think I need some help. Until now I tried:

Code:

Code:
<xf:widget class="XF\Widget\SearchForum" node_id="123" />
<xf:widget class="XF\Widget\SearchForum" params="{{ {'node_id': '123'} }}" />

The value 123 would be dynamic and would be replaced with a variable from custom thread fields. I can't us a manually created...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom