desti Posted October 19, 2020 Posted October 19, 2020 My users ask me to make widgets visibility control ( ips widgets topicFeed, imageFeed, etc ). I tried to do it in system/content/widget.php, but, apparently, everything is cached there and even the condition (if member_id = = 1) die; does not work. Any idea or is that impossible?
desti Posted October 19, 2020 Author Posted October 19, 2020 Use \IPS\Widget instead of \IPS\Content\Widget - completely rewrite widget.
Solution bfarber Posted October 20, 2020 Solution Posted October 20, 2020 Yes, widgets are designed to cache. You can't really do per-user things in the out of the box widgets, but you can create new ones that don't implement caching if needed. desti 1
Recommended Posts