- Posts: 30
COMMUNITY FORUM
Scroll K2 item from a link
- moonswolf
- Topic Author
- Offline
- Junior Member
Less
More
10 years 4 months ago #127668
by moonswolf
Replied by moonswolf on topic Re: Scroll K2 item from a link
Thankyou, sorry but i've not explained myself :P
I would go next and prev when i'm in an item page, not in the category view.
So, when i'm reading an article, goes to the next article (of that category) or previous, simply with a click, that i would put on the sticky right position (that i've in my template).
So i can go prev or next article, simply clicking on that link.
I would go next and prev when i'm in an item page, not in the category view.
So, when i'm reading an article, goes to the next article (of that category) or previous, simply with a click, that i would put on the sticky right position (that i've in my template).
So i can go prev or next article, simply clicking on that link.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 4 months ago #127669
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Scroll K2 item from a link
Item navigation is already there at the end of the item. Just go to K2 category of this item and enable item navigation in the item view settings.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- moonswolf
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
10 years 4 months ago #127670
by moonswolf
Replied by moonswolf on topic Re: Scroll K2 item from a link
Thanks, ok and it's clear, but can i put the item navigation as an icon, and put this into another position of the page?
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 4 months ago #127671
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Scroll K2 item from a link
To change the appearance you need to write custom CSS code. Regarding the position you can place it wherever you want inside the item.php layout. You cannot put it on a module.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- moonswolf
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
10 years 4 months ago #127672
by moonswolf
Replied by moonswolf on topic Re: Scroll K2 item from a link
Hi, thankyou so much for your suggest.
Could you tell me what piece of code should i move on the index.php to change the position of the item navigation?
Thankyou as always.
Could you tell me what piece of code should i move on the index.php to change the position of the item navigation?
Thankyou as always.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 4 months ago #127673
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Scroll K2 item from a link
Of course. The item navigation is produced by the following code:
<?php if($this->item->params->get('itemNavigation') && !JRequest::getCmd('print') && (isset($this->item->nextLink) || isset($this->item->previousLink))): ?>
<!-- Item navigation -->
<div class="itemNavigation">
<span class="itemNavigationTitle"><?php echo JText::_('K2_MORE_IN_THIS_CATEGORY'); ?></span>
<?php if(isset($this->item->previousLink)): ?>
<a class="itemPrevious" href="<?php echo $this->item->previousLink; ?>">
« <?php echo $this->item->previousTitle; ?>
</a>
<?php endif; ?>
<?php if(isset($this->item->nextLink)): ?>
<a class="itemNext" href="<?php echo $this->item->nextLink; ?>">
<?php echo $this->item->nextTitle; ?> »
</a>
<?php endif; ?>
</div>
<?php endif; ?>
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.