Joomla自定义组件查询字符串到SEF URL构建

时间:2013-11-11 12:15:21

标签: joomla3.0 joomla-sef-urls

我想为joomla 3+开发一个组件。 我正在使用数据库来获取菜单中的类别并手动创建如下所述的链接。

// Creating the manual link
$linkThingsToDo = JRoute::_('index.php?option=com_mycom&view=city&layout=thingstodo&cid[]='.$cityID.'&cat_id[]='.$value->catid);

这里我使用城市ID的“cid []”和类别ID的cat_id [],我在地址栏中获取链接,如下所示:

的Joomla / index.php的/城市导-3 /城市/ thingstodo CID [0] = 2及?CAT_ID [0] = 4

虽然我想要“joomla / index.php / city-guide-3 / city_name_here / category_name_here”

“的Joomla / index.php的/城市导-3 /迪拜/巧克力”

使用localhost进行测试。 我该怎么做才能实现上述SEF网址

0 个答案:

没有答案
相关问题