Moving .itemnavigation in lang module position

GK User
Sun Mar 22, 2015 5:27 pm
Hey Gavick team!

I'm using the GK Photo template on portfolio grid and I want to take the .itemnavigation PHP, specifically

Code: Select all
<?php if(isset($this->item->previousLink)): ?>
<a class="itemPrevious" href="<?php echo $this->item->previousLink; ?>">
NEXT
</a>
<?php endif; ?>


...and move it to the 'lang' module position.

I need to know where I can directly place this code in the .php just before the 'lang' module position is called, however I can't find the .php document where the lang is called. I don't want to use Sourcer via a custom HTML mod and place it in the position, it doesn't work.

Is it Item.php? social.php?

Any help would be appreciated.
User avatar
Fresh Boarder

GK User
Mon Mar 23, 2015 7:30 am
I'm trying to find lang position here:
https://demo.gavick.com/joomla25/photo/ ... -positions
but can't see such. Is this documentation outdated?
User avatar
Moderator

GK User
Mon Mar 23, 2015 7:32 am
I'll ask our devteam to update this documentation.
Meanwhile, the file you would like to edit is:
templates/gk_photo/layouts/default.php @213
User avatar
Moderator

GK User
Mon Mar 23, 2015 10:13 pm
Cyberek wrote:I'll ask our devteam to update this documentation.
Meanwhile, the file you would like to edit is:
templates/gk_photo/layouts/default.php @213


Thanks Cyberek! You've been so helpful! I'm going to check it out now!
User avatar
Fresh Boarder

GK User
Tue Mar 24, 2015 2:07 am
Cyberek wrote:I'll ask our devteam to update this documentation.
Meanwhile, the file you would like to edit is:
templates/gk_photo/layouts/default.php @213


Hey Cyberek!

So I tried just copy/pasting that segment of PHP into the default.php and nothing happens. No errors, it just doesn't render.

To be more specific, it doesn't display what's inside the <a href=""></a> tags.

Any solutions? I know you've been super helpful thus far!
User avatar
Fresh Boarder

GK User
Tue Mar 24, 2015 8:32 pm
Firstly, try adding just that:
Code: Select all
<a class="itemPrevious" href="#">
NEXT
</a>

to see if there is no cache related problem. Then let me know if this sample mockup code was rendered correctly.
User avatar
Moderator

GK User
Tue Mar 24, 2015 11:01 pm
Cyberek wrote:Firstly, try adding just that:
Code: Select all
<a class="itemPrevious" href="#">
NEXT
</a>

to see if there is no cache related problem. Then let me know if this sample mockup code was rendered correctly.


Hey Cyberek!

So I did exactly that, and the NEXT rendered perfectly. If you would like to see the site for yourself to see if anything crazy is going on, I'll DM you the info.
User avatar
Fresh Boarder

GK User
Wed Mar 25, 2015 7:20 pm
I guess the problem is that
Code: Select all
$this->item->previousLink

is simply unavailable at this place.
User avatar
Moderator


cron