Jump to content

Plugin requirements


Marcher Technologies

Recommended Posts

Posted

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.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...