Wednesday 16 January 2013

Smart Joomla Trick



 My Joomla tricks is the loadposition command . This gives you the ability to load a module inside an article. Just think of all the neat things that you can do with this. Using this technique your articles can have all kinds of dynamic content inside them like weather module, rotating images, or a Twitter feed inside an article, whatever you can do in a module you can put in your article.


Step-1:  The trick simply calls a module into a position inside the article. Here's how you do it: In your Joomla cms administration go to the Module Manager (Extensions > Module Manager)
  • Make a new module in the module manager
  • Give the module a Title
Step-2:
  • Inside the module "Details" settings place your curser inside of the "Position" field and instead of picking a position from the drop down, create a unique position name that does not exist in the template. Do this by highlighting all the text that is showing in the "Position" and type your new position name in there. Type something like "mynewposition" (without the quotation marks) in the "Position" field. Now we will finish setting the other normal module parameter stuff:
  • The "Order" of the module is not important. You don't need to do anything in this drop down.
  • Make sure the "Access Level" is "Public" if you want this module to show up to all the readers of your site.
  • For the "Menu Assignment" make sure the radio button for "All" is selected. This way your module will be available to use anywhere in your site.
  • Select "No" for "Show Title" of the module
  • Enable the module by selecting the "Yes radio button for "Enabled"
  • Click the "Save" icon on the top right corner of your admin browser window.
Step-3:

 The next part of the trick is getting the module called inside your article where you want it to appear
So you now have your module prepared but it's not showing anywhere in your site at the moment. Although this module is set to appear in "All" the menu positions of your site, it doesn't show up anywhere because there is no module position in your template with that unique name you gave it. Here's how you call the module into your article:
  • Go to your "Article Manager" (Content > Article Manager)
  • Select the article that you would like your module to appear in
  • Place your curser in the spot in your article where you would like to call your module to appear and type:             {Loadposition Positionname}     .
  • Make sure the "positionname" of the command between the curly brackets you typed is the name of the unique module name you gave the position. So if you named it "mynewposition" the command would be {loadposition mynewposition}
  • Click the Save" or "Apply" icon at the top right of your window to save your article change and check the article in the front end of your site. Remember to refresh your browser window if the article was previously loaded before your change. Your module should now appear in the article where you used the {loadposition mynewposition} command.
   Step-4:
 
 The trick simply calls a module into a position inside your article
 If you see "{loadposition mynewposition}" in your article instead of your module, it means that the Content - Load Module plugin is not enabled. Go to the "Plugin Manager" (Extensions > Plugin Manager) and enable the plugin by making sure that the green check mark " " instead of the red "x" is showing in the "Enabled" column for the Plugin Manager.

 Ray Business Technologies Pvt Ltd provides IT Services and Solutions to fortune 500 enterprises worldwide. Headquartered in Hyderabad, India, we have several years of experience across different industry verticals globally and strong understanding of the diverse business challenges faced by global enterprises today. Coupled with our thought leadership in IT based Business Process Outsourcing has contributed to the development of Customer-Centric Solutions Model.
We specialize in providing IT Solutions to Enterprises for effectively utilizing the available resources and efficiently manage the operations. We are sector-agnostic and offer eEnterprise Resource Planning, Embedded Systems,Kentico CMS ,Drupal CMS , Enterprise Portals and Content Management, Dynamics CRM and Enterprise Mobility Solutions. Our expertise and deep insights into how IT can be best leveraged coupled with our solutions, ensures that your marketing dollars are better spent.

No comments:

Post a Comment