I'm a joomla noob, and I know how to create a content joomla plugin that prints text just after article title using event listener onContentAfterTitle
. Content plugin for Joomla
But I cant find the event listener
inside which I should put my code that changes pages title
& page description
. I have put it inside onContentPrepare
& in the onAfterDispatch
but it doesnt work.
Anyone can explain to me how to get it work?
P.S: I want to create the plugin myself to customize as I want
Thanks for the link, but I've found an answer to my question here:
Create a plugin that changes pages title & meta description
And the event in which to put the code is onBeforeCompileHead
, and the function used to alter head is: $document->setHeadData($headData);
.