joomla2.5 - How to get full url of a article by it's ID in joomla? -
i have article id, how can valid full url of article? article associated menu might not know, there easy way in php url? using joomla 3.2 tried following already.
$article = controllerlegacy::getinstance('content')->getmodel('article')->getitem($articleid); jroute::_(contenthelperroute::getarticleroute($articleid,$article->catid))
you can use
$article = jcontrollerlegacy::getinstance('content') ->getmodel('article')->getitem($articleid); $url = jroute::_(contenthelperroute::getarticleroute($articleid, $article->catid, $article->language))
Comments
Post a Comment