Chapter 3: Item Type [TriggerContentPlugins Method]
The triggerContentPlugins method, again, is similar to our implementation for the category class as the purpose of it is to render the data back to a similar state before the user edited the editable type.
So we have a two step process:
- Use the Get method to get the current selected editable type data as stored in the database so the user can edit the whole content.
- After the user has finished editing, use the triggerContentPlugins to render the data back to a similar state as when the active component originally rendered the editable type.
In our component, we use Joomla’s read more tag to mark in edit mode where the introduction text begins and ends. So in this method we have to deal with this also.