teitbite wrote:Hi
Works when I try, but I've noticed that "Print" button is disabled. Try editing /component.php and add this between <head></head>
- Code: Select all
.itemFeature, .itemPrintThisPage {
display: block;
}
Thank you. That worked great for K2 articles.
For regular Joomla articles I had to add this code above <div class="item-body" itemprop="articleBody"> in file /templates/gk_technews/html/com_content/article/default.php:
- Code: Select all
<?php if(JRequest::getInt('print')==1): ?>
<!-- Print button at the top of the print page only -->
<a class="itemPrintThisPage" rel="nofollow" href="#" onclick="window.print();return false;">
<span><?php echo JText::_('K2_PRINT_THIS_PAGE'); ?></span>
</a>
<?php endif; ?>
I don't know if thats the right way to do it but it works!