- Posts: 2
COMMUNITY FORUM
intro text as link to full article
- Derka ProstoDerka
- Topic Author
- Offline
- New Member
Less
More
9 years 8 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
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
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 8 months ago - 3 years 4 months ago #142078
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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
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
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 3 years 4 months ago by JoomlaWorks.
Please Log in or Create an account to join the conversation.
- CCreston
- Offline
- New Member
Less
More
- Posts: 1
3 years 4 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
Id be super grateful for a quick reply
Please Log in or Create an account to join the conversation.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
3 years 4 months ago #179231
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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...
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.