Hi there!
I will add to category_item.php Email button, to send link with item to other friends - the same as in item.php view:
<?php if($params->get('itemEmailButton') && !JRequest::getInt('print')): ?>
<li class="itemEmail">
<a rel="nofollow" href="<?php echo $this->item->emailLink; ?>" onclick="window.open(this.href,'emailWindow','width=400,height=350,location=no,menubar=no,resizable=no,scrollbars=no'); return false;">
<?php echo JText::_('K2_EMAIL'); ?>
</a>
</li>
<?php endif; ?>
when I copy these lines to category_item.php I see an error:
Fatal error: Call to a member function get() on a non-object in
com_k2/templates/default/category_item.php on line 20
how can I rewrite the code to make it working? :-)
I'll be very grateful for your help!
best regards!
Adam
I will add to category_item.php Email button, to send link with item to other friends - the same as in item.php view:
<?php if($params->get('itemEmailButton') && !JRequest::getInt('print')): ?>
<li class="itemEmail">
<a rel="nofollow" href="<?php echo $this->item->emailLink; ?>" onclick="window.open(this.href,'emailWindow','width=400,height=350,location=no,menubar=no,resizable=no,scrollbars=no'); return false;">
<?php echo JText::_('K2_EMAIL'); ?>
</a>
</li>
<?php endif; ?>
when I copy these lines to category_item.php I see an error:
Fatal error: Call to a member function get() on a non-object in
com_k2/templates/default/category_item.php on line 20
how can I rewrite the code to make it working? :-)
I'll be very grateful for your help!
best regards!
Adam