Page 1 of 1

onContentBeforeSave data property

Posted: Wed Mar 20, 2019 9:30 am
by webjunky
The official documentations states:
data The data to save. Note this data should be already validated by the extension. Since 3.7. Required to be set by extensions as of 4.0 as the core joomla content plugin uses this property
I added this property to tehe plugin event, but I wonder how to use this. What is the difference in the property 'article' and 'data'? What was the reason to add this property?

I would like to change meta data before saving the article. How do I properly do this in J4.0?

Re: onContentBeforeSave data property

Posted: Sun Jun 02, 2019 6:48 am
by erick-b
for meta data why dont you use plugins/system/yourPlugin::onBeforeCompileHead() ?