I have a phocagallery inside a Joomla article, but I want to get the categoryid from the article url using post/get. I already know how to post the value in url, but how can I put the get value inside the { } code?
E.g. I would like to do this:
$uri = JUri::getInstance();
$cat_id = $uri->getVar('catid');
{phocagallery view=category|categoryid=$cat_id|limitstart=0|limitcount=3}
I already tried these two options, but neither work:
1) echo '{phocagallery view=category|categoryid=' . $cat_id. '|limitstart=0|limitcount=3}; -- this just displays the code as plain text in the article
2) {phocagallery view=category|categoryid=$cat_id|limitstart=0|limitcount=3} -- this causes the article not to display at all
Please advise how I can do this, thank you

