This started by a question from sseguin on the joomla forum https://forum.joomla.org/viewtopic.php?f=706&t=967272
At first I figured to do this in an override just adding some jQuery styling and attribution dynamically. However, configuring this from the admin would then not be possible. Some plugin technology would be required.
Big thanks to SharkyKZ who pointed us into the direction of some plugin technology.
Note! This plugin only is tested on ISIS admin template.
- Install the plugin as with any other extension
- The required categories are set in the plugin settings. Enable plugin.
- Upon creation or editing of an article the plugin checks for the articles category if on the list of categories that require a TAG The plugin then sets TAG field to required or not.
- While editing the author may switch categories. The jQuery script will then dynamically add or remove the appropriate pieces of html and/or styling attributes.
If a tag is required but not set, an error message will appear.