Hi folks,
I've been wrapping my head around how core tags work, and trying to implement automatic tag creation in
com_overload for testing purposes.
Since com_overload uses core com_content, my understanding was that
adding the tags array to metadata would do it, but it seems that this only adds the
json encoded tags to the
metadata field and gets the article into #__
ucm_content. No tags are created or associated with the content item.
On a side note, this works fine in Joomla 3.1.1, but triggers a fatal error in the latest from Github:
Fatal error: Cannot use object of type JHelperTags as array in /administrator/components/com_categories/models/category.php on line 430
Do I somehow need to call JHelperTags::preStoreProcess and JHelperTags::postStoreProcess. Is that correct?
I would have thought that doing something like the following in the article save method would work:
$table = JTable::getInstance($type = 'Content', $prefix = 'JTable', $config = array());
JHelperTags::preStoreProcess($table);
JHelperTags::postStoreProcess($table);
Any insight is greatly appreciated!