How to get URL to article from ID?
Posted: Mon Nov 26, 2007 4:37 pm
Hi all,
I'm using Joomla 1.5
I just wondering how can I create a link to article link this -> index.php?view=article&catid=10&id=20&option=com_content&Itemid=30
if I know only id of article (in this example it's =20)
I try to write code like this
link
but It's not use the template that I assign for that article.. it's only work if I add more parameter, the Itemid=30 to it.. but It's cannot hard-code.. it's depend..
so.. are there any API or how to make a link if I know only article id?
Thank you very much,
ps. I can't query database to find it.. because It will be very slow since on that page I want to show a lot of articles..
I'm using Joomla 1.5
I just wondering how can I create a link to article link this -> index.php?view=article&catid=10&id=20&option=com_content&Itemid=30
if I know only id of article (in this example it's =20)
I try to write code like this
link
but It's not use the template that I assign for that article.. it's only work if I add more parameter, the Itemid=30 to it.. but It's cannot hard-code.. it's depend..
so.. are there any API or how to make a link if I know only article id?
Thank you very much,
ps. I can't query database to find it.. because It will be very slow since on that page I want to show a lot of articles..