Conditional to display widget in specific node(s)

Discussion in '[bd] Widget Framework' started by alfa1, Jan 27, 2018.

  1. alfa1

    alfa1 Active Member

    #1 , Jan 27, 2018
    Last edited: Jan 27, 2018
    I would like to display a widget on forum view in the sidebar of specific forum nodes only.

    I have tried this, but it doesn't work:
    Code:
     in_array({$forum.node_id}, {xen:array '8', '485'})
    To display in one specific node:
    Code:
    {$forum.node_id} == '658'
    Could you please let me know what should I put on the Conditional box?
    I am using WF2.6.3 on XF 1.5.16a
     
  2. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    I think this should work

    Code:
    in_array({$forum.node_id}, {xen:array '0=8', '1=485'})
    
     
    alfa1 likes this.
  3. alfa1

    alfa1 Active Member

    Thanks! This works for XFRM, but not for Article Management System nor User Blog System.
     
  4. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    You meant it works for XFRM widget but not for widgets of those other add-ons?
     
  5. alfa1

    alfa1 Active Member

    Yes, that correct. AMS, UBS are the same framework as Showcase. All the addons are by Bob.
     
Loading...