How to check if other component is installed and enabled/disabled

bryce alvord Posted in Component Development 8 months ago

For the mention users component I am writing I am thinking I might want it to adjust the query for the users to whether or not they have the Display User Names 1.2 component installed and enabled for example. I would would user the user->fullname from a Users object when its not installed/enabled but if it is installed AND enabled I would adjust to use user->username from the Users object.

But the simple question is, is there a quick or easy/preferred way to tell if a separate component is installed and query whether or not that component is enabled or disabled?

us Bryce alvord Replied 8 months ago

Ugh, I'm a putz, thanks for the info and the reminder to read the docs Arsalan!