Keyword

intro text as link to full article

  • Derka ProstoDerka
  • Derka ProstoDerka's Avatar Topic Author
  • Offline
  • New Member
More
10 years 1 month ago #142057 by Derka ProstoDerka
intro text as link to full article was created by Derka ProstoDerka
Hi!
I could not find answer in forum .
Could you tell me please, how can I make article intro text as link to full article. I need that it works like read more button
Regards, Peter

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 1 month ago - 3 years 9 months ago #142078 by Krikor Boghossian
Replied by Krikor Boghossian on topic intro text as link to full article
Hello, in your overrides,

Locate this block in the category-item.php file:

<?php if($this->item->params->get('catItemIntroText')): ?>
<!-- Item introtext -->
<div class="catItemIntroText">
<?php echo $this->item->introtext; ?>
</div>
<?php endif; ?>


and replace it with this:

<?php if($this->item->params->get('catItemIntroText')): ?>
<!-- Item introtext -->
<div class="catItemIntroText">
<a href="<?php echo $this->item->link; ?>">
<?php echo $this->item->introtext; ?>
</a>
</div>
<?php endif; ?>


In order to locate the files you need to edit you need to read these files.
getk2.org/documentation/tutorials/174
Last edit: 3 years 9 months ago by JoomlaWorks.

Please Log in or Create an account to join the conversation.

More
3 years 10 months ago #179200 by CCreston
Replied by CCreston on topic intro text as link to full article
Hello there! I have been searching for hours for this problem as well and this old post seems to have the only solution to it. Is your code still available`? because the linked page does not have any answer to that.

Id be super grateful for a quick reply

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #179231 by JoomlaWorks
Replied by JoomlaWorks on topic intro text as link to full article
I edited the response above, as the update in this forum's software has borked old and new code snippets...

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum