Back/Next Buttom in k2 item - Multilanguage

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Mon Nov 26, 2012 4:27 pm
in August you wrote a very good explanation:
https://www.gavick.com/forums/132/back- ... 14739.html

I used it successfully on :http://www.cubidesign.de/2012/de/produkte/grosse-gehaeuse/item/1-biostep.html

But you just put previous and next, and I need a multilanguage Webseite. How can I change it?

Thanks
Philippe
User avatar
Junior Boarder

Konrad M
Mon Nov 26, 2012 4:31 pm
Hi,
can you provide a correct link to topic on forum ?
User avatar

GK User
Mon Nov 26, 2012 4:38 pm
Konrad M wrote:Hi,
can you provide a correct link to topic on forum ?


https://www.gavick.com/forums/132/back-next-buttom-in-k2-item-14739.html
User avatar
Junior Boarder

Konrad M
Tue Nov 27, 2012 10:32 am
Please try change code from topic you gave to this one:
Code: Select all
<div class="itemNavigation">

<?php if(isset($this->item->previousLink)): ?>
<a class="itemPrevious" href="<?php echo $this->item->previousLink; ?>">
<?php echo JText::_('K2_PREV'); ?>
</a>
<?php endif; ?>

<?php if(isset($this->item->nextLink)): ?>
<a class="itemNext" href="<?php echo $this->item->nextLink; ?>">
<?php echo JText::_('K2_NEXT'); ?>

<?php endif; ?>

</div>

then please go to languages/en-GB.com_k2.ini and add at the bottom
Code: Select all
K2_PREV="Previous"
K2_NEXT="Next"


In the same way edit rest lang files in diffrent lang folders. Of course translate them to their language.
User avatar

GK User
Tue Nov 27, 2012 11:06 am
I works perfect. T H A N K S a lot!

Konrad M wrote:Please try change code from topic you gave to this one:
Code: Select all
<div class="itemNavigation">

<?php if(isset($this->item->previousLink)): ?>
<a class="itemPrevious" href="<?php echo $this->item->previousLink; ?>">
<?php echo JText::_('K2_PREV'); ?>
</a>
<?php endif; ?>

<?php if(isset($this->item->nextLink)): ?>
<a class="itemNext" href="<?php echo $this->item->nextLink; ?>">
<?php echo JText::_('K2_NEXT'); ?>

<?php endif; ?>

</div>

then please go to languages/en-GB.com_k2.ini and add at the bottom
Code: Select all
K2_PREV="Previous"
K2_NEXT="Next"


In the same way edit rest lang files in diffrent lang folders. Of course translate them to their language.
User avatar
Junior Boarder


cron