- Posts: 21
COMMUNITY FORUM
Adding Image to Item Navigation
- Solomon Hodge
-
Topic Author
- Offline
- Junior Member
Less
More
10 years 7 months ago #132076
by Solomon Hodge
Adding Image to Item Navigation was created by Solomon Hodge
What I'd like to do is add the item image to the navigation. Anyone know if this is possible?
The code I'd like to modify is this:
So that is also calls
...but pulls the image from the article that's being linked to.
Thanks!
The code I'd like to modify is this:
<?php if(isset($this->item->previousLink)): ?>
<a class="itemPrevious" href="<?php echo $this->item->previousLink; ?>">
<?php echo $this->item->previousTitle; ?>
</a>
<?php endif; ?>
So that is also calls
<img src="<?php echo $this->item->image; ?>" />
...but pulls the image from the article that's being linked to.
Thanks!
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 7 months ago - 10 years 7 months ago #132077
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Adding Image to Item Navigation
I think this is only available in the DEV version, although it might work in the 2.6.8 version as well.
and
<?php echo $this->item->previousImageSmall; ?>
and
<?php echo $this->item->nextImageSmall; ?>
Please Log in or Create an account to join the conversation.
- Solomon Hodge
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
10 years 7 months ago #132078
by Solomon Hodge
Replied by Solomon Hodge on topic Re: Adding Image to Item Navigation
Awesome! I can confirm this code does work in 2.6.8.
This can probably be marked Solved.
Also, just worth checking, do you suspect the next version of K2 is coming REALLY soon, or is it more in the land of "It's coming soon, but we're still working out the kinks"?
This can probably be marked Solved.
Also, just worth checking, do you suspect the next version of K2 is coming REALLY soon, or is it more in the land of "It's coming soon, but we're still working out the kinks"?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 7 months ago #132079
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Adding Image to Item Navigation
Depending on what you 're meaning by REALLY soon.
If you mean within the next few (2) coming weeks, then yes. If you mean this Tuesday then, no.
If you want to start a brand new project you can start experimenting with the beta version.
github.com/joomlaworks/k2-v3-dev-build
If you mean within the next few (2) coming weeks, then yes. If you mean this Tuesday then, no.
If you want to start a brand new project you can start experimenting with the beta version.
github.com/joomlaworks/k2-v3-dev-build
Please Log in or Create an account to join the conversation.
- Solomon Hodge
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
10 years 7 months ago #132080
by Solomon Hodge
Replied by Solomon Hodge on topic Re: Adding Image to Item Navigation
I would classify really soon under 2 weeks.
Thanks!
Thanks!
Please Log in or Create an account to join the conversation.
- Mr_Anonymous
-
- Offline
- Premium Member
Less
More
- Posts: 92
10 years 7 months ago #132081
by Mr_Anonymous
Replied by Mr_Anonymous on topic Re: Adding Image to Item Navigation
Nice one. I am gonna use this in my template. Good snippet to keep. :)Krikor Boghossian wrote: I think this is only available in the DEV version, although it might work in the 2.6.8 version as well.
<?php echo $this->item->previousImageSmall; ?>
and
<?php echo $this->item->nextImageSmall; ?>
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 7 months ago #132082
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Adding Image to Item Navigation
Always happy to help :)
Please Log in or Create an account to join the conversation.
- Mr_Anonymous
-
- Offline
- Premium Member
Less
More
- Posts: 92
10 years 7 months ago #132083
by Mr_Anonymous
Replied by Mr_Anonymous on topic Re: Adding Image to Item Navigation
Hi Krikore, do you think 2 weeks could be possible? There are still a few things to finalize and as well as the frontend editing bits too. Its a lot of work for a small team isint it. :)Krikor Boghossian wrote: If you mean within the next few (2) coming weeks, then yes.
Please Log in or Create an account to join the conversation.