JRoute and Itemid

1,388 views
Skip to first unread message

Julien Devillers

unread,
Nov 21, 2010, 5:54:40 AM11/21/10
to joomla-de...@googlegroups.com
Hello

I'm developping a component. today SEF is not enabled.
I access the component via a menu. The resulting url is :

http://localhost/index.php?option=com_gvads&view=gvAds&Itemid=56

I add links in the current page by the following command in the model :

$categories[$i]['linkTarget'] =
JRoute::_('index.php?option=com_gvAds&task=category&id='.$row->id);
After that linkTarget is something like that :

http://localhost/index.php?option=com_gvAds&task=category&id=7

The Itemid does appear. What did I miss ?

regards
Julien


Davide Tampellini

unread,
Nov 21, 2010, 6:32:12 AM11/21/10
to joomla-de...@googlegroups.com
hehe i had the same problem too..
solution: add the itemid manually.

you can create a function that gets the Itemid parameter and adds it to the link.
at least, this is what i did, if there are any other solutions..

2010/11/21 Julien Devillers <qdaem...@yahoo.com>





--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.


Julien Devillers

unread,
Nov 21, 2010, 6:37:04 AM11/21/10
to joomla-de...@googlegroups.com
well, in fact, that's what I tried successfully but the doc says that JRoute handles it automatically
http://docs.joomla.org/Routing (search "itemid") and I did not found in all joomla classes, a component
that add it "manually". So there should be another way to do...

Thanks
Julien


De : Davide Tampellini <tamp...@gmail.com>
À : joomla-de...@googlegroups.com
Envoyé le : Dim 21 novembre 2010, 12h 32min 12s
Objet : Re: JRoute and Itemid

TytooF

unread,
Nov 21, 2010, 3:10:10 PM11/21/10
to Joomla! General Development
Hello Julien,

In fact, i think that you have to code your component router.php that
you have to put at the root of your component folder.

When you put a JRoute::_() method in your code to have the route to
your item, Joomla call the corresponding router.php file (depending on
option value). You can find some good exemple in core components.


On 21 nov, 12:37, Julien Devillers <qdaemon...@yahoo.com> wrote:
> well, in fact, that's what I tried successfully but the doc says that JRoute
> handles it automaticallyhttp://docs.joomla.org/Routing(search "itemid") and I did not found in all
> joomla classes, a component
> that add it "manually". So there should be another way to do...
>
> Thanks
> Julien
>
> ________________________________
> De : Davide Tampellini <tampe...@gmail.com>
> À : joomla-de...@googlegroups.com
> Envoyé le : Dim 21 novembre 2010, 12h 32min 12s
> Objet : Re: JRoute and Itemid
>
> hehe i had the same problem too..
> solution: add the itemid manually.
>
> you can create a function that gets the Itemid parameter and adds it to the
> link.
> at least, this is what i did, if there are any other solutions..
>
> 2010/11/21 Julien Devillers <qdaemon...@yahoo.com>

Prasit Gebsaap

unread,
Nov 21, 2010, 3:23:03 PM11/21/10
to joomla-de...@googlegroups.com
I think you if you not lose your Itemid along the way, JRoute will do it for you. For example if you start from menu which having Itemid, and then you use JRoute everywhere. Then you should not have the problem. But if you, at some point, forgot to use JRoute so Itemid disappear. if you come back to JRoute again, It can not help you there.
Prasit Gebsaap
 
Nonthaburi, Thailand
 

Julien Devillers

unread,
Nov 21, 2010, 3:24:07 PM11/21/10
to joomla-de...@googlegroups.com
Hi tytoof

In fact, i did sexeral attemps and it seems that router.php
Is called only if sef is enabled .

Julien

TytooF

unread,
Nov 22, 2010, 9:08:21 AM11/22/10
to Joomla! General Development
Hi Julien,

It is maybe right, I allways use SEF on my project...

Maybe Prasit Gebsaap give us a good information. I have to validate
that I miss using JRoute in part of my components, but it can be a
begining. It will explain why I do not find an itemID reference into
the core component (like I have to do).

Prasit, can you explain how to do this well when you show a form? Just
using JRoute in the action attribute, or have we to pass some argument
in hidden fields (option / task / itemID / ...)?

Prasit Gebsaap

unread,
Nov 22, 2010, 10:40:42 AM11/22/10
to joomla-de...@googlegroups.com
Hi TytooF,
 
When using a form I always use action="<?php echo JRoute::_('index.php?option=com_example', false)?>". You can add more parameter there if you wish or provide others in hidden fields. This decision which will appear more in action attribute depends on your SEF design support. I mean you have to structure your request parameters, their order when building your component 's router.php.

Julien

unread,
Nov 22, 2010, 2:26:29 PM11/22/10
to Joomla! General Development
Hum... That does not work for me. See the screenshot (url and
statusbar for the link).

http://www.la-voltige.com/link.png

The link is generated with the following line :

$categories[$i]['linkTarget'] = JRoute::_('index.php?
option=com_gvAds&task=category&id='.$row->id);

If I do :
$categories[$i]['linkTarget'] = JRoute::_('index.php?
option=com_gvAds&task=category&id='.$row-
>id.'&Itemid='.JRequest::getInt('Itemid', 0));

it works but it's not a good pratice.

regards
Julien
> > > >joomla-dev-gene...@googlegroups.com<joomla-dev-general%2Bunsu...@googlegroups.com>
> > .
> > > >For more options, visit this group at
> > > >http://groups.google.com/group/joomla-dev-general?hl=en-GB.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Joomla! General Development" group.
> > > To post to this group, send an email to
> > joomla-de...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > joomla-dev-gene...@googlegroups.com<joomla-dev-general%2Bunsu...@googlegroups.com>
> > .
> > > For more options, visit this group athttp://
> > groups.google.com/group/joomla-dev-general?hl=en-GB.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Joomla! General Development" group.
> > To post to this group, send an email to
> > joomla-de...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > joomla-dev-gene...@googlegroups.com<joomla-dev-general%2Bunsu...@googlegroups.com>
> > .

Prasit Gebsaap

unread,
Nov 22, 2010, 8:50:21 PM11/22/10
to joomla-de...@googlegroups.com
Hi Julien,
For your development, you started by making zip package then install via Joomla backend or you just create folders and file. Because it is very strange for that.

To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.




--
Prasit Gebsaap
 

Julien

unread,
Nov 23, 2010, 3:43:41 PM11/23/10
to Joomla! General Development
Hi Prasit

Story of the component :
I started with an open source component. But It was build for joomla
1.0 and when trying to
migrate it, I saw that it was ugly coded. So I did a lot changes that
leads to a completly
new component on my local machine.
Before installing it, I decided to rename the component and build an
install xml file.

So, the component was installed by an installer but maybe, I did
somethig wrong with.
First I noticed that in the jos_component table, there was nothing in
the "link" field so I added
it manually.
Are there other table that should be impacted by the installation of a
component ?

Thanks
Julien


On 23 nov, 02:50, Prasit Gebsaap <prasit.gebs...@gmail.com> wrote:
> Hi Julien,
> For your development, you started by making zip package then install via
> Joomla backend or you just create folders and file. Because it is very
> strange for that.
>
> > <joomla-dev-general%2Bunsu...@googlegroups.com<joomla-dev-general%252Buns...@googlegroups.com>
>
> > > > .
> > > > > >For more options, visit this group at
> > > > > >http://groups.google.com/group/joomla-dev-general?hl=en-GB.
>
> > > > > --
> > > > > You received this message because you are subscribed to the Google
> > Groups
> > > > > "Joomla! General Development" group.
> > > > > To post to this group, send an email to
> > > > joomla-de...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > joomla-dev-gene...@googlegroups.com<joomla-dev-general%2Bunsu...@googlegroups.com>
> > <joomla-dev-general%2Bunsu...@googlegroups.com<joomla-dev-general%252Buns...@googlegroups.com>
>
> > > > .
> > > > > For more options, visit this group athttp://
> > > > groups.google.com/group/joomla-dev-general?hl=en-GB.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Joomla! General Development" group.
> > > > To post to this group, send an email to
> > > > joomla-de...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > joomla-dev-gene...@googlegroups.com<joomla-dev-general%2Bunsu...@googlegroups.com>
> > <joomla-dev-general%2Bunsu...@googlegroups.com<joomla-dev-general%252Buns...@googlegroups.com>

Prasit Gebsaap

unread,
Nov 23, 2010, 8:44:53 PM11/23/10
to joomla-de...@googlegroups.com
Hi Julien,
 
If it is Joomla! 1.5 component #__component is the only one table related to component. So in this case when you first click on a menu item in frontend, there is Itemid, right? So you should check where you left off Itemid by not using JRoute. router.php was called when you enable SEF, but this is not a case as Joomla! always maintain Itemid for breadcrumb, module display etc. If you manually insert Itemid please make sure that it is Itemid (CAPITAL I).

To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.




--
Prasit Gebsaap
 

Julien

unread,
Nov 25, 2010, 5:01:23 PM11/25/10
to Joomla! General Development
Hi Prasit

Yes, when I click a menu there's an Itemid.
The screen capture above is the first page displayed after the click
on the menu.

In the model of this page I have the following code :


class gvAdsModelgvAds extends JModel{

function getCategories(){
$database = JFactory::getDBO();

$database->setQuery("SELECT * FROM #__xxx ORDER BY id");
$rows = $database->loadObjectList();

$i=0;
foreach($rows as $row) {
// $linkTarget = JRoute::_('index.php?
option=com_gvAds&task=category&id='.$row-
>id.'&Itemid='.JRequest::getInt('Itemid', 0));
$linkTarget = JRoute::_('index.php?
option=com_gvAds&task=category&id='.$row->id);

In this case, $linkTarget does not contain the Itemid. If I use the
commented line instead, the Itemid is present with the good value.
I really don't understand what happen. if the
JRequest::getInt('Itemid', 0)); returns the good Itemid, why does
Itemid does not appear when I call JRoute::_ ?....

Julien



On 24 nov, 02:44, Prasit Gebsaap <prasit.gebs...@gmail.com> wrote:
> Hi Julien,
>
> If it is Joomla! 1.5 component #__component is the only one table related to
> component. So in this case when you first click on a menu item in frontend,
> there is Itemid, right? So you should check where you left off Itemid by not
> using JRoute. router.php was called when you enable SEF, but this is not a
> case as Joomla! always maintain Itemid for breadcrumb, module display etc.
> If you manually insert Itemid please make sure that it is Itemid (CAPITAL
> I).
>
> > > > <joomla-dev-general%2Bunsu...@googlegroups.com<joomla-dev-general%252Buns...@googlegroups.com>
> > <joomla-dev-general%252Buns...@googlegroups.com<joomla-dev-general%25252Bun...@googlegroups.com>
>
> > > > > > .
> > > > > > > >For more options, visit this group at
> > > > > > > >http://groups.google.com/group/joomla-dev-general?hl=en-GB.
>
> > > > > > > --
> > > > > > > You received this message because you are subscribed to the
> > Google
> > > > Groups
> > > > > > > "Joomla! General Development" group.
> > > > > > > To post to this group, send an email to
> > > > > > joomla-de...@googlegroups.com.
> > > > > > > To unsubscribe from this group, send email to
> > > > > > > joomla-dev-gene...@googlegroups.com<joomla-dev-general%2Bunsu...@googlegroups.com>
> > <joomla-dev-general%2Bunsu...@googlegroups.com<joomla-dev-general%252Buns...@googlegroups.com>
>
> > > > <joomla-dev-general%2Bunsu...@googlegroups.com<joomla-dev-general%252Buns...@googlegroups.com>
> > <joomla-dev-general%252Buns...@googlegroups.com<joomla-dev-general%25252Bun...@googlegroups.com>
>
> > > > > > .
> > > > > > > For more options, visit this group athttp://
> > > > > > groups.google.com/group/joomla-dev-general?hl=en-GB.
>
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google
> > > > Groups
> > > > > > "Joomla! General Development" group.
> > > > > > To post to this group, send an email to
> > > > > > joomla-de...@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > joomla-dev-gene...@googlegroups.com<joomla-dev-general%2Bunsu...@googlegroups.com>
> > <joomla-dev-general%2Bunsu...@googlegroups.com<joomla-dev-general%252Buns...@googlegroups.com>
>
> > > > <joomla-dev-general%2Bunsu...@googlegroups.com<joomla-dev-general%252Buns...@googlegroups.com>
> > <joomla-dev-general%252Buns...@googlegroups.com<joomla-dev-general%25252Bun...@googlegroups.com>

Prasit Gebsaap

unread,
Nov 28, 2010, 3:08:04 PM11/28/10
to joomla-de...@googlegroups.com
Sorry for late answer, I just cambe back from vacation. For your case, it is very strange problem. Normally Joomla use menu parameter to retreive Itemid. If in your case, if com_gvAds is a current component it should work fine. I don't know in database (#__components), what name was stored for your component, com_gvAds or com_gvads?

To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.




--
Prasit Gebsaap
 
Nonthaburi, Thailand
 

Julien

unread,
Dec 5, 2010, 10:49:00 AM12/5/10
to Joomla! General Development
Hi Prasit

Do you have a backdoor to my computer ?
You're right : in the #__component table, in the component record,
the field option was setted to com_gva

On 28 nov, 21:08, Prasit Gebsaap <prasit.gebs...@gmail.com> wrote:
> Sorry for late answer, I just cambe back from vacation. For your case, it is
> very strange problem. Normally Joomla use menu parameter to retreive Itemid.
> If in your case, if com_gvAds is a current component it should work fine. I
> don't know in database (#__components), what name was stored for your
> component, com_gvAds or com_gvads?
>
> > > > > > <joomla-dev-general%2Bunsu...@googlegroups.com<joomla-dev-general%252Buns...@googlegroups.com>
> > <joomla-dev-general%252Buns...@googlegroups.com<joomla-dev-general%25252Bun...@googlegroups.com>
>
> > > > <joomla-dev-general%252Buns...@googlegroups.com<joomla-dev-general%25252Bun...@googlegroups.com>
> > <joomla-dev-general%25252Bun...@googlegroups.com<joomla-dev-general%2525252Bu...@googlegroups.com>
>
> > > > > > > > .
> > > > > > > > > >For more options, visit this group at
> > > > > > > > > >http://groups.google.com/group/joomla-dev-general?hl=en-GB.
>
> > > > > > > > > --
> > > > > > > > > You received this message because you are subscribed to the
> > > > Google
> > > > > > Groups
> > > > > > > > > "Joomla! General Development" group.
> > > > > > > > > To post to this group, send an email to
> > > > > > > > joomla-de...@googlegroups.com.
> > > > > > > > > To unsubscribe from this group, send email to
> > > > > > > > > joomla-dev-gene...@googlegroups.com<joomla-dev-general%2Bunsu...@googlegroups.com>
> > <joomla-dev-general%2Bunsu...@googlegroups.com<joomla-dev-general%252Buns...@googlegroups.com>
>
> > > > <joomla-dev-general%2Bunsu...@googlegroups.com<joomla-dev-general%252Buns...@googlegroups.com>
> > <joomla-dev-general%252Buns...@googlegroups.com<joomla-dev-general%25252Bun...@googlegroups.com>
>
> > > > > > <joomla-dev-general%2Bunsu...@googlegroups.com<joomla-dev-general%252Buns...@googlegroups.com>
> > <joomla-dev-general%252Buns...@googlegroups.com<joomla-dev-general%25252Bun...@googlegroups.com>
>
> > > > <joomla-dev-general%252Buns...@googlegroups.com<joomla-dev-general%25252Bun...@googlegroups.com>
> > <joomla-dev-general%25252Bun...@googlegroups.com<joomla-dev-general%2525252Bu...@googlegroups.com>
>
> > > > > > > > .
> > > > > > > > > For more options, visit this group athttp://
> > > > > > > > groups.google.com/group/joomla-dev-general?hl=en-GB.
>
> > > > > > > > --
> > > > > > > > You received this message because you are subscribed to the
> > Google
> > > > > > Groups
> > > > > > > > "Joomla! General Development"
>
> ...
>
> plus de détails »

Julien

unread,
Dec 5, 2010, 10:50:25 AM12/5/10
to Joomla! General Development
Sorry for mistyping :

the field option was setted to com_gvads instead of com_gvAds....

Thanks a lot

Regards
Julien
> ...
>
> plus de détails »

Prasit Gebsaap

unread,
Dec 7, 2010, 4:30:51 AM12/7/10
to joomla-de...@googlegroups.com
Ok, then your problem was completely solved, right?.

To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.




--

Swapnil Shah

unread,
Dec 30, 2011, 1:57:03 AM12/30/11
to joomla-de...@googlegroups.com
Hey Folks,

anyone have a problem with itemid not being found for com_users?

I am using the following syntax JRoute::_('index.php?option=com_users&view=login&return='.$returnUrl, false)

since the option is not equal to com_users the JRoute doesn't set the Itemid automatically. Anyone know how to get JRoute to set the itemId? or do I have to do it manually?

thanks,

Neil

Hannes Papenberg

unread,
Dec 30, 2011, 4:48:42 AM12/30/11
to joomla-de...@googlegroups.com
JRoute does not set the Itemid, which is a long standing bug (1.5+) but
if you look into /components/com_users/helpers/route.php, you can find
UsersHelperRoute, which should help you with your problem.

Hannes

Am 30.12.2011 07:57, schrieb Swapnil Shah:
> Hey Folks,
>
> anyone have a problem with itemid not being found for com_users?
>
> I am using the following syntax
> JRoute::_('index.php?option=com_users&view=login&return='.$returnUrl,
> false)
>
> since the option is not equal to com_users the JRoute doesn't set the
> Itemid automatically. Anyone know how to get JRoute to set the itemId?
> or do I have to do it manually?
>
> thanks,
>
> Neil
>
> On 12/7/2010 4:30 AM, Prasit Gebsaap wrote:
>> Ok, then your problem was completely solved, right?.
>>
>> On 5 December 2010 22:50, Julien <qdaem...@yahoo.com

>> <mailto:qdaem...@yahoo.com>> wrote:
>>
>> Sorry for mistyping :
>>
>> the field option was setted to com_gvads instead of com_gvAds....
>>
>> Thanks a lot
>>
>> Regards
>> Julien
>>

>> On 5 d�c, 16:49, Julien <qdaemon...@yahoo.com


>> <mailto:qdaemon...@yahoo.com>> wrote:
>> > Hi Prasit
>> >
>> > Do you have a backdoor to my computer ?
>> > You're right : in the #__component table, in the component record,
>> > the field option was setted to com_gva
>> >
>> > On 28 nov, 21:08, Prasit Gebsaap <prasit.gebs...@gmail.com

>> <mailto:prasit.gebs...@gmail.com>> wrote:
>> >
>> > > Sorry for late answer, I just cambe back from vacation. For
>> your case, it is
>> > > very strange problem. Normally Joomla use menu parameter to
>> retreive Itemid.
>> > > If in your case, if com_gvAds is a current component it
>> should work fine. I
>> > > don't know in database (#__components), what name was stored
>> for your
>> > > component, com_gvAds or com_gvads?
>> >
>> > > On 26 November 2010 05:01, Julien <qdaemon...@yahoo.com

>> <mailto:prasit.gebs...@gmail.com>> wrote:
>> > > > > Hi Julien,
>> >
>> > > > > If it is Joomla! 1.5 component #__component is the only
>> one table related
>> > > > to
>> > > > > component. So in this case when you first click on a menu
>> item in
>> > > > frontend,
>> > > > > there is Itemid, right? So you should check where you
>> left off Itemid by
>> > > > not
>> > > > > using JRoute. router.php was called when you enable SEF,
>> but this is not
>> > > > a
>> > > > > case as Joomla! always maintain Itemid for breadcrumb,
>> module display
>> > > > etc.
>> > > > > If you manually insert Itemid please make sure that it is
>> Itemid (CAPITAL
>> > > > > I).
>> >
>> > > > > On 24 November 2010 03:43, Julien <qdaemon...@yahoo.com

>> <prasit.gebs...@gmail.com <mailto:prasit.gebs...@gmail.com>> wrote:
>> > > > > > > Hi Julien,
>> > > > > > > For your development, you started by making zip
>> package then install
>> > > > via
>> > > > > > > Joomla backend or you just create folders and file.
>> Because it is
>> > > > very
>> > > > > > > strange for that.
>> >
>> > > > > > > On 23 November 2010 02:26, Julien

>> <qdaemon...@yahoo.com <mailto:qdaemon...@yahoo.com>> wrote:
>> >
>> > > > > > > > Hum... That does not work for me. See the
>> screenshot (url and
>> > > > > > > > statusbar for the link).
>> >
>> > > > > > > >http://www.la-voltige.com/link.png
>> >
>> > > > > > > > The link is generated with the following line :
>> >
>> > > > > > > > $categories[$i]['linkTarget'] = JRoute::_('index.php?
>> > > > > > > > option=com_gvAds&task=category&id='.$row->id);
>> >
>> > > > > > > > If I do :
>> > > > > > > > $categories[$i]['linkTarget'] = JRoute::_('index.php?
>> > > > > > > > option=com_gvAds&task=category&id='.$row-
>> > > > > > > > >id.'&Itemid='.JRequest::getInt('Itemid', 0));
>> >
>> > > > > > > > it works but it's not a good pratice.
>> >
>> > > > > > > > regards
>> > > > > > > > Julien
>> >
>> > > > > > > > On 21 nov, 21:23, Prasit Gebsaap

>> <prasit.gebs...@gmail.com <mailto:prasit.gebs...@gmail.com>> wrote:
>> > > > > > > > > I think you if you not lose your Itemid along the
>> way, JRoute
>> > > > will do
>> > > > > > it
>> > > > > > > > for
>> > > > > > > > > you. For example if you start from menu which
>> having Itemid, and
>> > > > then
>> > > > > > you
>> > > > > > > > > use JRoute everywhere. Then you should not have
>> the problem. But
>> > > > if
>> > > > > > you,
>> > > > > > > > at
>> > > > > > > > > some point, forgot to use JRoute so Itemid
>> disappear. if you come
>> > > > > > back to
>> > > > > > > > > JRoute again, It can not help you there.
>> >
>> > > > > > > > > On 22 November 2010 03:10, TytooF

>> <tyt...@gmail.com <mailto:tyt...@gmail.com>> wrote:
>> >
>> > > > > > > > > > Hello Julien,
>> >
>> > > > > > > > > > In fact, i think that you have to code your
>> component
>> > > > router.php
>> > > > > > that
>> > > > > > > > > > you have to put at the root of your component
>> folder.
>> >
>> > > > > > > > > > When you put a JRoute::_() method in your code
>> to have the
>> > > > route to
>> > > > > > > > > > your item, Joomla call the corresponding
>> router.php file
>> > > > (depending
>> > > > > > on
>> > > > > > > > > > option value). You can find some good exemple
>> in core
>> > > > components.
>> >
>> > > > > > > > > > On 21 nov, 12:37, Julien Devillers

>> <qdaemon...@yahoo.com <mailto:qdaemon...@yahoo.com>>


>> > > > wrote:
>> > > > > > > > > > > well, in fact, that's what I tried
>> successfully but the doc
>> > > > says
>> > > > > > that
>> > > > > > > > > > JRoute
>> > > > > > > > > > > handles it automaticallyhttp://
>> > > > docs.joomla.org/Routing(search

>> <http://docs.joomla.org/Routing%28search>


>> > > > > > > > "itemid")
>> > > > > > > > > > and I did not found in all
>> > > > > > > > > > > joomla classes, a component
>> > > > > > > > > > > that add it "manually". So there should be
>> another way to
>> > > > do...
>> >
>> > > > > > > > > > > Thanks
>> > > > > > > > > > > Julien
>> >
>> > > > > > > > > > > ________________________________
>> > > > > > > > > > > De : Davide Tampellini <tampe...@gmail.com

>> <mailto:tampe...@gmail.com>>
>> > > > > > > > > > > � : joomla-de...@googlegroups.com
>> <mailto:joomla-de...@googlegroups.com>
>> > > > > > > > > > > Envoy� le : Dim 21 novembre 2010, 12h 32min 12s


>> > > > > > > > > > > Objet : Re: JRoute and Itemid
>> >
>> > > > > > > > > > > hehe i had the same problem too..
>> > > > > > > > > > > solution: add the itemid manually.
>> >
>> > > > > > > > > > > you can create a function that gets the
>> Itemid parameter and
>> > > > adds
>> > > > > > it
>> > > > > > > > to
>> > > > > > > > > > the
>> > > > > > > > > > > link.
>> > > > > > > > > > > at least, this is what i did, if there are
>> any other
>> > > > solutions..
>> >
>> > > > > > > > > > > 2010/11/21 Julien Devillers

>> <qdaemon...@yahoo.com <mailto:qdaemon...@yahoo.com>>

>> <mailto:joomla-de...@googlegroups.com>.


>> > > > > > > > > > > >To unsubscribe from this group, send email to
>> > > > > > > > > > >
>> >joomla-dev-gene...@googlegroups.com

>> <mailto:joomla-dev-general%2Bunsu...@googlegroups.com><joomla-dev-general%2Bunsu...@googlegroups.com
>> <mailto:joomla-dev-general%252Buns...@googlegroups.com>>
>> > > > <joomla-dev-general%2Bunsu...@googlegroups.com
>> <mailto:joomla-dev-general%252Buns...@googlegroups.com><joomla-dev-general%252Buns...@googlegroups.com
>> <mailto:joomla-dev-general%25252Bun...@googlegroups.com>>
>> >
>> > > > > > <joomla-dev-general%2Bunsu...@googlegroups.com
>> <mailto:joomla-dev-general%252Buns...@googlegroups.com><joomla-dev-general%252Buns...@googlegroups.com
>> <mailto:joomla-dev-general%25252Bun...@googlegroups.com>>
>> > > > <joomla-dev-general%252Buns...@googlegroups.com
>> <mailto:joomla-dev-general%25252Bun...@googlegroups.com><joomla-dev-general%25252Bun...@googlegroups.com
>> <mailto:joomla-dev-general%2525252Bu...@googlegroups.com>>
>> >
>> > > > > > > > <joomla-dev-general%2Bunsu...@googlegroups.com
>> <mailto:joomla-dev-general%252Buns...@googlegroups.com><joomla-dev-general%252Buns...@googlegroups.com
>> <mailto:joomla-dev-general%25252Bun...@googlegroups.com>>
>> > > > <joomla-dev-general%252Buns...@googlegroups.com
>> <mailto:joomla-dev-general%25252Bun...@googlegroups.com><joomla-dev-general%25252Bun...@googlegroups.com
>> <mailto:joomla-dev-general%2525252Bu...@googlegroups.com>>
>> >
>> > > > > > <joomla-dev-general%252Buns...@googlegroups.com
>> <mailto:joomla-dev-general%25252Bun...@googlegroups.com><joomla-dev-general%25252Bun...@googlegroups.com
>> <mailto:joomla-dev-general%2525252Bu...@googlegroups.com>>
>> > > > <joomla-dev-general%25252Bun...@googlegroups.com
>> <mailto:joomla-dev-general%2525252Bu...@googlegroups.com><joomla-dev-general%2525252Bu...@googlegroups.com
>> <mailto:joomla-dev-general%252525252B...@googlegroups.com>>


>> >
>> > > > > > > > > > .
>> > > > > > > > > > > >For more options, visit this group at
>> > > > > > > > > > >
>> >http://groups.google.com/group/joomla-dev-general?hl=en-GB.
>> >
>> > > > > > > > > > > --
>> > > > > > > > > > > You received this message because you are
>> subscribed to the
>> > > > > > Google
>> > > > > > > > Groups
>> > > > > > > > > > > "Joomla! General Development" group.
>> > > > > > > > > > > To post to this group, send an email to
>> > > > > > > > > > joomla-de...@googlegroups.com

>> <mailto:joomla-de...@googlegroups.com>.


>> > > > > > > > > > > To unsubscribe from this group, send email to
>> > > > > > > > > > >
>> joomla-dev-gene...@googlegroups.com

>> <mailto:joomla-dev-general%2Bunsu...@googlegroups.com><joomla-dev-general%2Bunsu...@googlegroups.com
>> <mailto:joomla-dev-general%252Buns...@googlegroups.com>>
>> > > > <joomla-dev-general%2Bunsu...@googlegroups.com
>> <mailto:joomla-dev-general%252Buns...@googlegroups.com><joomla-dev-general%252Buns...@googlegroups.com
>> <mailto:joomla-dev-general%25252Bun...@googlegroups.com>>
>> >
>> > > > > > <joomla-dev-general%2Bunsu...@googlegroups.com
>> <mailto:joomla-dev-general%252Buns...@googlegroups.com><joomla-dev-general%252Buns...@googlegroups.com
>> <mailto:joomla-dev-general%25252Bun...@googlegroups.com>>
>> >
>> > ...
>> >
>> > plus de d�tails �


>>
>> --
>> You received this message because you are subscribed to the
>> Google Groups "Joomla! General Development" group.
>> To post to this group, send an email to
>> joomla-de...@googlegroups.com

>> <mailto:joomla-de...@googlegroups.com>.


>> To unsubscribe from this group, send email to
>> joomla-dev-gene...@googlegroups.com

>> <mailto:joomla-dev-general%2Bunsu...@googlegroups.com>.


>> For more options, visit this group at
>> http://groups.google.com/group/joomla-dev-general?hl=en-GB.
>>
>>
>>
>>
>> --

>> Prasit Gebsaap
>>
>> Nonthaburi, Thailand
>> http://www.joomlant.com <http://www.joomlant.com/>,
>> http://www.joomlant.org <http://www.joomlant.org/>
>> http://ktdms.blogspot.com <http://ktdms.blogspot.com/>,
>> http://lowcost-it.blogspot,com <http://lowcost-it.blogspot,com/>

Swapnil Shah

unread,
Dec 30, 2011, 11:18:00 AM12/30/11
to joomla-de...@googlegroups.com
Hannes,

Thanks for that! UserHelperRoute did the trick!

Pesky helpers!

Regards,


Neil
Sent from my iPhone

>>> On 5 déc, 16:49, Julien <qdaemon...@yahoo.com

>>>>>>>>>>>>> À : joomla-de...@googlegroups.com
>>> <mailto:joomla-de...@googlegroups.com>
>>>>>>>>>>>>> Envoyé le : Dim 21 novembre 2010, 12h 32min 12s

>>>> plus de détails »

Reply all
Reply to author
Forward
0 new messages