Hi,
I'd like to change the readmore link to direct to a pdf I have stored. For instance, www.busyteacherresources.com/files/pdf/example-5.pdf.
I have found the code that controls it on category_item.php. It is:
<!-- Item "read more..." link -->
<div class="catItemReadMore">
<a class="k2ReadMore" href="<?php echo $this->item->link; ?>">
<?php echo JText::_('K2_READ_MORE'); ?>
</a>
</div>
<?php endif; ?>
I have created an extra field and entered location of the pdf for the item. For example, /files/pdf/example-5.pdf.
Unfortunately, I'm not that good with php.
Does anyone know a good way to rewrite the code above to either reference that extra field, or, I could just make a new field in the db itself and enter the link or file location there.
Thanks in advance.
Kory
I'd like to change the readmore link to direct to a pdf I have stored. For instance, www.busyteacherresources.com/files/pdf/example-5.pdf.
I have found the code that controls it on category_item.php. It is:
<!-- Item "read more..." link -->
<div class="catItemReadMore">
<a class="k2ReadMore" href="<?php echo $this->item->link; ?>">
<?php echo JText::_('K2_READ_MORE'); ?>
</a>
</div>
<?php endif; ?>
I have created an extra field and entered location of the pdf for the item. For example, /files/pdf/example-5.pdf.
Unfortunately, I'm not that good with php.
Does anyone know a good way to rewrite the code above to either reference that extra field, or, I could just make a new field in the db itself and enter the link or file location there.
Thanks in advance.
Kory