Christer L
Member
If I add a widget (I wrote) by selecting one or more positions for it (in the sidebar for example), it has access to a protected variable
But if I add the same widget using
If no bug, can I find the current forum id or thread id somewhere else from my widget code?
contextParams
. In it I can find information about the current forum or thread, depending on where widget displays.But if I add the same widget using
<xf:widget>
in a template (as I want it above a thread list for example, not in sidebar) it does not have any data in contextParams
. Is there a reason for this, or a bug?If no bug, can I find the current forum id or thread id somewhere else from my widget code?