- Posts: 13
- Thank you received: 0
Loadposition
- theophila
- Topic Author
- Offline
- New Member
-
Less
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:
or
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?
Code:
{loadmodule xx}
Code:
{loadposition xx}
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
-
Less
More
- Posts: 13
- Thank you received: 0
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:
to
Where "xx" is whatever page of the eventbooking component it happens to be.
Code:
$dispatcher->trigger('onPrepareContent', array (& $article, & $params, $limitstart));
Code:
$dispatcher->trigger('onContentPrepare', array ('com_eventbooking.xx', & $article, & $params, $limitstart));
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
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
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.