Chapter 3: Blog type [Save Method]
Saving the actual data is the same as in the Item type class. However, when we are returning the data, just as in the trigger ContentPlugins method when we are dealing with the HTML content, we only return the introduction text.
Also, we change this line of code:
$dispatcher->trigger('onContentPrepare', array ('com_mycck.item', &$item, &$item->params, 0));
To
$dispatcher->trigger('onContentPrepare', array ('com_mycck.category', &$item, &$item->params, 0));
Please take note: that how we deal with the introduction text and the main text for our items in our component, maybe different to how you deal with it in yours. You may use some string truncation function and if that is the case, you will need to use that method instead.