detect widget position

Status
This content is read-only, or is not open for further replies.

QuackieMackie

Guest
offline
I have a widget in the position 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:

Code:
Logger::debug("Rendering UserPetWidget for user_id: {$visitor->user_id}", [
    'widgetConfig'...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom