×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Seblod Integration

Seblod Integration 10 years 3 months ago #24137

  • eastkilla
  • eastkilla's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Hi all,
I'm working on Joomla 3.2.1 and Seblod 3.2.0. I would like to integrate CComment in a personnal content page using tabs created with bootstrap . I want to display Ccomment only in a specific tab (in TAB2 for exemple), not below all tabs. Is it possible ? Thanks for your help. My code page :
<?php
/**
* @package			SD Simple Simon Template V2.5.0 for SEBLOD 3.x - www.seblod.com
* @license 			GNU General Public License version 2 or later
* @author       	Simon Dowdles - http://www.simondowdles.com
* @copyright		Copyright (C) 2013 Simon Dowdles New Media Holdings (Pty) Ltd. All Rights Reserved.
**/
 
// No Direct Access
defined( '_JEXEC' ) or die;
?>
 
<ul class="nav nav-tabs">
    <li><a href="#TAB1" data-toggle="tab">TAB1</a></li>
    <li><a href="#TAB2" data-toggle="tab">TAB2</a></li>
</ul>
 
<div class="tab-content">
 
	<div class="tab-pane" id="TAB1">
		<p><?php echo $cck->renderField('field1')?></p>
		<p> <?php echo $cck->renderField('field2')?></p>
		<p> <?php echo $cck->renderField('field3')?></p>
	</div>
 
	<div class="tab-pane" id="TAB2"><?php echo $cck->renderField('art_fulltext')?></div>
</div>

Seblod Integration 10 years 3 months ago #24174

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
CComment is loaded with the onAfterContent event. So if in your tab you call the onAfterContent it should show in the position you want. This has the side effect that all other plugins that load onAfterContent would also load in the tab though...

Cheers,
Daniel
  • Page:
  • 1
Time to create page: 0.105 seconds