As Brian already mentioned is the Itemid the id of the assigned menu item. Without this, Joomla will not know which menu item is active.
Turn off SEF URLs and you will notice this parameter on each link. You may also notice that it's named &Itemid=1234 and not &itemid=1234. I'm not sure if it's important but I'd keep the first char uppercase just to be sure.
As said, JRoute will add the component name and the Itemid to the link by default. So if you have a link pointing to the same extension, you could use JRoute::_('index.php?view=foo') and it would internally translate to JRoute::_('index.php?option=com_foobar&view=foo&Itemid=1234'). This works in a regular view, but not during an Ajax call if you didn't pass the Itemid. Because then during the call there is no menu item active.
Am Dienstag, 15. Januar 2013 23:54:06 UTC+1 schrieb Liam:
No item id is passed, the AJAX is called from a function that has the product ID number.
The product ID is passed back to the controller which then stores it in the session for later use. It then returns a list of items in the session and a link to 'checkout'.
The link to checkout is the one that JRoute::_() fails to complete using the menu alias.
Can you explain what you meant by the item id, I have no item page to load if that makes sense.
Thanks
Liam
Many thanks
Liam Glanfield
07875 328 368
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.