IMPORTANT MESSAGE REGARDING THE FORUM

As you may already know, the JoomlaWorks Forum is powered by Kunena (the only decent forum component for Joomla).

Unfortunately, the latest update for Kunena has seemingly broken all code snippets (old and new) in the forum.

Until this message is removed, please paste any code as regular text - in other words, don't use the [code]...[/code] tags in Kunena's post editor.

Keyword

intro text as link to full article

  • Derka ProstoDerka
  • Derka ProstoDerka's Avatar Topic Author
  • Offline
  • New Member
More
6 years 4 months 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
  • User
More
6 years 4 months ago - 2 weeks 5 days 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: 2 weeks 5 days ago by Fotis.

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

  • CCreston
  • CCreston's Avatar
  • User
More
3 weeks 5 days 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
2 weeks 5 days ago #179231 by Fotis
Replied by Fotis 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...

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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


Powered by Kunena Forum