I want to put an anchor link to my comment form showing also th etotal number of comments in the article info block.
I laready have a custom article template in
/templates/MY-TEMPLATE/html/com_content/article/default.php
and by surfing the forum/web I understood that I need to operate on this file
/layouts/joomla/content/info_block
so I created
/layouts/joomla/content/info_block_custom
but I am not sure how to call the file in my default.php template
I tried editing line 87 to
Code: Select all
<?php echo JLayoutHelper::render('joomla.content.info_block_custom', array('item' => $this->item, 'params' => $params, 'position' => 'above')); ?>
/layouts/joomla/content/info_block_custom
which, by the way, would be something like
Code: Select all
<dd>
<a href="#comments"><i class="fa fa-fw fa-comments-o"></i> <span class="commentCounter" data-kt-counter><?php echo $commentCount; ?> </span><?php echo JText::_('COM_KOMENTO_COMMENTS'); ?></a>
</dd>
thanks for any advice on this!