QuackieMackie
Active member
I have a widget in the position
Is there a way to do that, and if so can someone point me in the right direction?
This is what i've tried so far in my render function:
Member view: Sidebar
, this widget can be placed in other locations without any problem though, but I want to detect when the widget renders in the position Member view: Sidebar
so I can perform a different action.Is there a way to do that, and if so can someone point me in the right direction?
This is what i've tried so far in my render function:
PHP:
Logger::debug("Rendering UserPetWidget for user_id: {$visitor->user_id}", [
'widgetConfig' => $this->widgetConfig
]);
Logger::debug('Widget context params', [
'contextParams' => $this->contextParams
]);