I am very new to Joomla and few plugins in Joomla uses variables like with {} brackets. For example ‘{mosmap}’ displays Google maps in Joomla. I want to know how it works so that I can customize the plugin for my requirements.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
{} in joomla, [] in wordpress, they are called replacement tags. I’ve never done Joomla pluggins although i did some modules and components but i did shorttags in WordPress and my guess is they work the exact same way.
The engine, Joomla or WordPress, detects {} or [] and parses the content into something that can be transfered to your pluggin and then your pluggin can act on it.
For example, in WordPress:
Relays to my wordpress plugin as an array in my function like:
I’ll recommend reading http://docs.joomla.org/Plugin for more information on it…