Display the default read more button istead of the Komento read more text?
-
ResolvedHello,
how do I use Komento in combination with the defaut read more buttons?
If I turn commenting on, then the default read more buttons get replaced by the Komento read more text.
For more infos please see the attachments.
Thanks and best regards,
ChrisReferences:
Subscribed Products:
Accepted Answer
-
Selected answer for this questionHello Chris,
I am sorry for the delay of this reply. I am sorry but this is not possible at this point of time. In the next version of Komento however, we'll be adding a configuration that allows you to choose to use Joomla's own read more link instead. Temporarily what you can do is to edit the file /components/com_komento/komento_plugins/com_content.php and at line 423 locate the block of codes below,
if( $view == 'listing' ) { $article->readmore = false; return $html; }
Replace it with,
if( $view == 'listing' ) { return $html; }
Then, edit the file /components/com_komento/themes/kuro/comment/bar.php and remove the block of codes below,
<?php if( $system->config->get( 'layout_frontpage_readmore') && ( ( $component == 'com_content' && Komento::_('JParameter::get', $article->params, 'show_readmore') && $article->readmore ) || $component != 'com_content' ) ) { ?> <span class="kmt-readmore aligned-<?php echo $system->config->get( 'layout_frontpage_alignment' ); ?>"> <a href="/<?php echo $componentHelper->getContentPermalink();?>" title="<?php echo $this->escape( $componentHelper->getContentTitle() );?>"><?php echo JText::_( 'COM_KOMENTO_FRONTPAGE_READMORE' );?></a> </span> <?php } ?>
2 responses Add a reply
Your Response
Please login to reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.