Keyword

[SOLVED]add module position before disqus

  • thetom
  • thetom's Avatar Topic Author
  • Offline
  • New Member
More
12 years 8 months ago - 12 years 8 months ago #46696 by thetom
Hello everyone!
I'd like to add a module position before the disqus comment system. How can i do that?
Thank you!

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

  • thetom
  • thetom's Avatar Topic Author
  • Offline
  • New Member
More
12 years 8 months ago - 12 years 8 months ago #46697 by thetom
Replied by thetom on topic Re: add module position before disqus
I figured out myself how to do this. It's just template overriding.
Just add a folder in your hmtl template folder called "jw_disqus".
Copy the /plugins/content/jw_disqus/tmpl/article.php file there and add the following lines after <?php echo $row->text; ?> :
<div id="bottom_art">
	<?php
	$document = &JFactory::getDocument();
	$renderer = $document->loadRenderer( 'modules' );
	$options = array( 'style' => 'raw' );
	echo $renderer->render( 'bottom_art', $options, null);
	?>	
	</div>

You'll make a new module position at the end of the article just before disqus.
Hope it's useful for someone.

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


Powered by Kunena Forum