Forum Moderators: coopster

Message Too Old, No Replies

changing links for joomla

joomla links

         

kristianDavid

8:01 pm on Sep 26, 2007 (gmt 0)

10+ Year Member



hello. this is a question regarding joomla but it pertains to PHP.

i have a joomla instance set up and a beautifully functioning template set up, however i have a problem.
i need some of the links in the template to change depending on what page the user is on. i figure the easiest way of doing this (without having to make a different template for each page - there's over 20 of them) is to use a php query string to determine what page the user clicked on and change the links accordingly. However, being a relative newbie to php coding i'm not sure exactly how to do this.
Please help. i need to get this solved ASAP!
thanks in advance.

[edited by: kristianDavid at 8:03 pm (utc) on Sep. 26, 2007]

Habtom

5:08 am on Sep 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi kristianDavid, Welcome to WebmasterWorld.

There might be a few components which can help you achieve what you mentioned in a joomla application at extensions.joomla.org

I don't see a very easy way of doing this in Joomla by just dropping a snippet of PHP code, but if you decide to do it, you need to look at the specific module (in this case it could be mod_mainmenu), and edit the file accordingly.

And remember you will get more support on Joomla at forum.joomla.org where almost all the time you will get somebody who has gone through similar problems.

Habtom