Keyword

How to add a joomla module?

  • ivan drago
  • ivan drago's Avatar Topic Author
  • Offline
  • New Member
More
12 years 6 months ago #64453 by ivan drago
How to add a joomla module? was created by ivan drago
Hi there,

I want to add a joomla module between after the article between "Related Items" and the "Comment Form"

But how can I do this? :S

Thanks in advance!

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

More
12 years 6 months ago #64454 by william white
Replied by william white on topic Re: How to add a joomla module?
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

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

More
12 years 6 months ago #64455 by Carlos
Replied by Carlos on topic Re: How to add a joomla module?
I use this code I found on the former forum to load a module position:
<?php 
  /* get all Modules assigned to Position 'latest' */
$latestItem = &JModuleHelper::getModules( 'position' );

/* loop through the array and render their output */
foreach ($latestItem as $latest) {
$_options = array( 'style' => 'xhtml' );
echo JModuleHelper::renderModule($latest,$_options);
}
?>

Hope it helps.

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

  • ivan drago
  • ivan drago's Avatar Topic Author
  • Offline
  • New Member
More
12 years 6 months ago - 12 years 6 months ago #64456 by ivan drago
Replied by ivan drago on topic Re: How to add a joomla module?
Hi Carlos
found another code to add a module a few minutes before your reply, but tried your code and it works too.
( getk2.org/community/New-to-K2-Ask-here-first%21/10473-Re-How-to-add-a-joomla-module )

Just wanted to say Thanks for your help!

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


Powered by Kunena Forum