XF 2.0 Check for active add-on

Lukas W.

Well-known member
What's the simplest way to check for an installed add-on, for example if you want to provide additional functionality depending on whether the resource manager is installed or not? Doing a query or a finder lookup seems like a lot of overhead.
 
Installed or active? If active, the app/container has "addon.cache" which will tell you all of the add-ons active and their version IDs. If you really want to do something based on the install status itself, you'd need some sort of query (such as against the add-on table).
 
Active indeed, not installed. Basically about hiding/showing some tabs depending on whether a third-party add-on is active or not, so users don't run into not working functionality.
 
Top Bottom