TheSkullKid Active member Oct 15, 2022 #1 Is it possible to check inside the template where the widget will be displayed?
P Paul B XenForo moderator Staff member Oct 15, 2022 #2 You can get the page the widget is displayed on using {$xf.uri} .
TheSkullKid Active member Oct 16, 2022 #3 but there I do not know if it is in the sidebar or on the main page, right?
TheSkullKid Active member Oct 17, 2022 #4 Why is it not possible to use the same syntax as in PAGE_CONTAINER? PHP: <xf:if is="$sideNav"> ... </xf:if> <xf:if is="$sidebar"> ... </xf:if> And why is in the $widget variable the position not been filled, is that a bug?
Why is it not possible to use the same syntax as in PAGE_CONTAINER? PHP: <xf:if is="$sideNav"> ... </xf:if> <xf:if is="$sidebar"> ... </xf:if> And why is in the $widget variable the position not been filled, is that a bug?