- تاریخ ثبتنام
- 2020-06-26
- نوشتهها
- 21,420
- راهحلها
- 27
- پسندها
- 3,264
- امتیازها
- 113
- سن
- 27
- محل سکونت
- England
- وب سایت
- xenforo.xyz
Hello,
I would like to show a widget in the sidebar of some forums, but only within a certain category. Structure is like this.
category-1
-- forum - 1-1
-- forum - 1-2
category-2
-- forum 2-1
-- forum 2-2
...
-- forum 2-n
Is it possible to show a widget only in forum-2-1 .. forum-2-n ? I've tried in_array($xf.reply.containerKey, ['node-x','node-xx','node-xxx']) which works fine. However, in this case I have to add all forums manually and have to change the condition for every new forum...
I would like to show a widget in the sidebar of some forums, but only within a certain category. Structure is like this.
category-1
-- forum - 1-1
-- forum - 1-2
category-2
-- forum 2-1
-- forum 2-2
...
-- forum 2-n
Is it possible to show a widget only in forum-2-1 .. forum-2-n ? I've tried in_array($xf.reply.containerKey, ['node-x','node-xx','node-xxx']) which works fine. However, in this case I have to add all forums manually and have to change the condition for every new forum...