Marcher Technologies Posted March 5, 2015 Share Posted March 5, 2015 Could this please be added at some point? It is a common need to require a given application be installed for a plugins installation or function, now more than ever with the board being optional. public function init() { if (!\IPS\Application::appIsEnabled('cms')) { throw new \UnderflowException; } parent::init(); $this->template(array(\IPS\Theme::i()->getTemplate('plugins', 'core', 'global'), $this->key)); }The above is one of my widget's init methods. This will stop it from appearing for selection when Pages is disabled or not installed, but gives the end user(admin) absolutely no indication of why it will not appear, which without doubt will lead to confusion. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.