Joomla.32 SEF网址和com_tags

时间:2014-10-08 13:36:25

标签: joomla tags seo joomla3.2 sef

我正在使用Joomla v3.2 在com_tags组件中,我修改了helpers / route.php文件,以便在url查询中包含catid和Itemid。 (查询由mod_easycloud模块构建,该模块也已经过修改。)

$link = 'index.php?option=com_tags&view=tag&id=' .$id.'&Itemid='.JRequest::getInt('Itemid');
$link .= '&catId='.JRequest::getInt('catId');

我还修改了router.php文件,以便构建和解析正确的SEF网址。

但是当我切换到SEF网址时, Itemid 参数不起作用。内容与 catid 类别正确关联,但当前菜单项无效。

当我切换回非sef网址时,上述功能正常工作。

1 个答案:

答案 0 :(得分:0)

尝试使用JRoute :: _($ link)。 这使得路线可以用作普通网址和SEF网址。