Page-specific logic in Joomla
Posted
by Casebash
on Stack Overflow
See other posts from Stack Overflow
or by Casebash
Published on 2010-04-07T01:45:41Z
Indexed on
2010/04/07
1:53 UTC
Read the original article
Hit count: 259
joomla
I am trying to enable JavaScript in a Joomla template to behave differently depending on the page. In particular, I have set the Key Reference as that appears to be the most appropriate value I could find for this purpose. Unfortunately, I can't seem to access it in my code. I tried:
$this->params->get("keyref")
and a few other variations, but they simply returned a blank. How can I retrieve this value or is there a better way of writing page specific logic.
Related Articles
- Joomla load script in a specific page: This would work, but seems like overkill for what I want to do here.
© Stack Overflow or respective owner