Is there a way to have a link dynamically change based on the category of the page?
For example, I want this link: <a href="index.php?option=com_k2&view=itemlist&layout=category&task=category&id=2&Itemid=123">
to change to a different menu itemid dependent on the category of the page.
An example page is:
isl.stellarprintnetwork.com/index.php?option=com_k2&view=itemlist&layout=category&task=category&id=1&Itemid=125
If Category id = 1
then the href above should have itemid=123
If Category id = 2
then the href above should have itemid=247
I think this can be done with php calls but I do not know php...