RSS Feed/News detect widget position

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
29,173
Points
823

Reputation:

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...
 
Status
Not open for further replies.
Top