Keyword

Re: How to add a joomla module?

  • ivan drago
  • ivan drago's Avatar Topic Author
  • Offline
  • New Member
More
12 years 6 months ago - 12 years 6 months ago #64461 by ivan drago
Re: How to add a joomla module? was created by ivan drago

William White wrote: I have never tried this, but i would imagine if you get the syntax correct you could use loadposition in the item.php override file you are using in the right spot. interesting

Hi William,

thanks for your posting, that gave me a great idea. Got it working now. Just created a new module position and added the following in the item override file:

<?php
$document = &JFactory::getDocument();
$renderer = $document->loadRenderer('modules');
$options = array('style' => 'xhtml');
$position = 'MY_CREATED_POSITION';

echo $renderer->render($position, $options, null);
?>

:woohoo:

EDIT://
Hmpf, thought I clicked "Reply with quote" and not new thread :dry: Maybe somebody can move it to getk2.org/community/New-to-K2-Ask-here-first%21/10461-How-to-add-a-joomla-module

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum