betweenbrain™ | web • print • idenity • creative

  • Content
  • Navigation
  • Home
  • Services
  • Process
  • Contact
  • About
  • Notes
  • Download

Including Joomla Module Positions in Template Overrides

Last Updated on Thursday, 04 February 2010 18:12

Originally posted by Andrew Eddie on the Joomla! Forum:

To load a module position within a layout you can do this:

<?php
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer( 'modules' );
$options = array( 'style' => 'raw' );
echo $renderer->render( 'position_name', $options, null);
?>

Change the "style" to whatever you need (most likely raw, but could be xhtml), and change the position_name to the actual module position.

Add comment

We'd like to hear what you think. As long as it's constructive, we'll publish it.


Security code
Refresh

Send
Cancel
JComments
Going up?
feed-image Feed Entries
  • Home
  • Services
  • Process
  • Contact
  • About
  • Notes
  • Download
  • Search
  • Sitemap

All rights reserved. © 2010 betweenbrain™
Developed using the Joomla Engineering™ Template Development Framework
Disclaimer