Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |
optionchanges [2025/02/25 17:13] – admin | optionchanges [2025/02/25 17:26] (current) – admin |
---|
This plugin exists to make it easy to handle changes to component options (accessed by the "Options" button in the top right corner). Option changes are handled by Joomla and without a change handler, your component does not know they have happened. For some changes, this does not matter. But for others, you need to take some action when an option changes. | This plugin exists to make it easy to handle changes to component options (accessed by the "Options" button in the top right corner). Option changes are handled by Joomla and without a change handler, your component does not know they have happened. For some changes, this does not matter. But for others, you need to take some action when an option changes. |
| |
To make this easy, install the Component Options Handler plugin and publish it. To make it work for you, add some code to your component install script. It is conveniently done as a method and you can use it with minimal changes: | To make this easy, install the Option Changes Plugin and publish it. To make it work for you, add some code to your component install script. It is conveniently done as a method and you can use it with minimal changes: |
| |
private function registerWithOptionsHandler(): bool | private function registerWithOptionsHandler(): bool |