I'm trying to use the getArticleRoute function (com_content/helpers/route.php) to make SEF urls.
I have some success, but not really what I want to do.
For example on front page you have a link like this:
xxxx/the-news/1-latest-news/6-we-are-volunteers.html
My link looks like this:
xxxx/the-news/1/6.html
Why is that? I'm giving the right catid and section id to getArticleRoute. Is there something else that should be done?
Code: Select all
JLoader::import('components.com_content.helpers.route',$mosConfig_absolute_path);
$url = JRoute::_(ContentHelperRoute::getArticleRoute($contentId, $this->catid, $this->sectionid)