Link a module to a component , not to a menu item.

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
zian974
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Sep 10, 2007 9:41 am

Link a module to a component , not to a menu item.

Post by zian974 » Thu Nov 29, 2007 7:18 am

Hello,

I wrote a component and a module.
I would like to bind this module to this component and not to a link of a menu. I can modify the function  &_load of the file libraries/joomla/application/module/helper.php but I don't want to modify the heart of jommla.

Thanks

zian974
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Mon Sep 10, 2007 9:41 am

Re: Link a module to a component , not to a menu item.

Post by zian974 » Thu Nov 29, 2007 11:40 am

I think that I found the solution.
In fact, I didn't want to put the Itemid parameter manually in my URL (which i wrote in my component) to display the module when I call the component.
By using JRoute::_($link, false), I think i solved my problem.


Post Reply