Does anyone have any idea what the Joomla 1.5 equivalent is to these mambo commands?
$mambothandler =& mosMambotHandler::getInstance();
$mambothandler->loadBotGroup('system');
$mambothandler->trigger('afterTemplate', array($configuration));
Asking here because this command sequence is found in the mambo bridge and I don't have access to the Joomla bridge (too late to the table).
Thanks,
joe
I don't think that Joomla HAS event mambots
Quote from: Kindred on March 13, 2008, 02:33:20 PM
I don't think that Joomla HAS event mambots
No, but you can trigger system events such as:
$mainframe->triggerEvent('afterTemplate');
Except there's no such thing as the afterTemplate event for Joomla 1.5.
joe
There will be quite a few of those missing in Joomla. They were incorporated in Mambo 4.6.x at my request, which did not happen in Joomla.
Quote from: Orstio on March 13, 2008, 03:09:32 PM
There will be quite a few of those missing in Joomla. They were incorporated in Mambo 4.6.x at my request, which did not happen in Joomla.
Well, Drat! I feel like I'm getting soooo close, and yet so far away. I think I've pretty much got the unwrapped version working, at least it renders a page. I guess I need to poke around elsewhere to figure out how to do the wrapping in J! 1.5.
I'd just go with Mambo if I hadn't already invested so much time in this.
Thanks very much for the response!
joe
Joomla 1.5 has plugins instead of mambots.
QuoteI think I've pretty much got the unwrapped version working, at least it renders a page. I guess I need to poke around elsewhere to figure out how to do the wrapping in J! 1.5.
I found the trick in Joomla 1.5 was to set up the component as MVC, and "hijack" Joomla's model and view. It's important in a multiple-database environment to remember to switch back to the Joomla database before the module renderer is invoked.
The afterTemplate event in Mambo is just used to switch back to the SMF database to end the SMF session. If you remember older Joomla 1.0.x bridges, people had to add a small piece of code at the end of their templates if they had SMF and Joomla in separate databases. That is not required in Mambo 4.6.x