Loadposition

  • theophila
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 8 months ago - 13 years 8 months ago #10914 by theophila
Loadposition was created by theophila
I'd like to embed a menu into individual event pages the same way I can in articles with:
Code:
{loadmodule xx}
or
Code:
{loadposition xx}
My Content - Load Modules plugin is enabled, and I took a look at the code and realised that the 1.6/1.7 version of Events Booking still hadn't updated the "onPrepareContent" to "onContentPrepare," so I changed this, but what else do I have to do to be able to embed modules?
Last edit: 13 years 8 months ago by theophila.

Please Log in or Create an account to join the conversation.

  • theophila
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 8 months ago #10918 by theophila
Replied by theophila on topic Re: Loadposition
Ah, never mind. I fixed this by changing all instances of:
Code:
$dispatcher->trigger('onPrepareContent', array (& $article, & $params, $limitstart));
to
Code:
$dispatcher->trigger('onContentPrepare', array ('com_eventbooking.xx', & $article, & $params, $limitstart));
Where "xx" is whatever page of the eventbooking component it happens to be.

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #10947 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Loadposition
Great. Thanks for sharing. I will update the code to the download package soon (Joomla 1.6, 1.7 has a better way to call and process content plugin) .

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc