SEF - JRoute not working

More
14 years 3 months ago #2973 by opolette
Hi,

When using JRoute on a flexicontent URI, the result is not correct (usign standard Joomla SEF).

Any clue to solve this problem ?

Thanks in advance

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #2977 by opolette
Replied by opolette on topic SEF - JRoute not working
Hi,

No answer ?
Here is the type of code that I have :
Code:
$query = 'SELECT alias, link FROM #__menu WHERE menutype like ' . $mycriterion. ' AND published = 1 ORDER BY ordering'; $db->setQuery($query); if (!$db->query()) { JError::raiseError( 500, $db->stderr()); } $menuitems = $db->loadObjectList(); $i=1; foreach($menuitems as $menuitem) { echo "<div id=\"leftbutton".$i."\"><a href=\"".JRoute::_($menuitem->link)."\"><img margin=\"6\" alt=\"Menu\" src=$image/></div>";
$menuitem->link is replaced by the right URL for the first link, but the second one is not replaced by a correct URL but by the same URL than the first link, etc.

Thanks in advance

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.555 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline