- Posts: 140
COMMUNITY FORUM
[Solved] Previous & Next link
- Uzi
-
Topic Author
- Offline
- Premium Member
Less
More
7 years 11 months ago - 7 years 11 months ago #162233
by Uzi
[Solved] Previous & Next link was created by Uzi
I got a K2 installation where I make use of the next article functionality. This is defined this way:
But this doesn't show anything. The version for the nextlink works as supposed to but the previous not. Do I have to flick a configuration somewhere?
<?php if(isset($this->item->prevLink)): ?>
<div><a class="itemNext itemPrev" href="<?php echo $this->item->prevLink; ?>"><span class="txtico"><span class="arrow left"><i class="fa fa-angle-left" aria-hidden="true"></i></span>Previous article</span></a></div>
<?php endif; ?>
But this doesn't show anything. The version for the nextlink works as supposed to but the previous not. Do I have to flick a configuration somewhere?
Last edit: 7 years 11 months ago by Uzi.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 11 months ago #162235
by Krikor Boghossian
Replied by Krikor Boghossian on topic Previous & Next link
Is any HTML code printed, it might be an CSS issue.
Please Log in or Create an account to join the conversation.
- Uzi
-
Topic Author
- Offline
- Premium Member
Less
More
- Posts: 140
7 years 11 months ago #162245
by Uzi
Replied by Uzi on topic Previous & Next link
It's not an CSS issue, because the link appears. But there is not actual href linked to the link. $this->item->prevLink seems to be empty!
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 11 months ago #162252
by Krikor Boghossian
It's actually previousLink and previousTitle
Replied by Krikor Boghossian on topic Previous & Next link
<?php if(isset($this->item->previousLink)): ?>
<a class="itemPrevious" href="<?php echo $this->item->previousLink; ?>">« <?php echo $this->item->previousTitle; ?></a>
<?php endif; ?>
It's actually previousLink and previousTitle
Please Log in or Create an account to join the conversation.
- Uzi
-
Topic Author
- Offline
- Premium Member
Less
More
- Posts: 140
7 years 11 months ago - 7 years 11 months ago #162356
by Uzi
Replied by Uzi on topic [Solved] Previous & Next link
You're a god. Thanks.
Last edit: 7 years 11 months ago by Uzi.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 11 months ago #162363
by Krikor Boghossian
Replied by Krikor Boghossian on topic [Solved] Previous & Next link
Haha not really, but thanks :)
Please Log in or Create an account to join the conversation.