Keyword

Adding Image to Item Navigation

  • Solomon Hodge
  • Solomon Hodge's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 2 weeks 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:
<?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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 1 week ago - 10 years 1 week 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.
<?php echo $this->item->previousImageSmall; ?>

and
<?php echo $this->item->nextImageSmall; ?>

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Solomon Hodge
  • Solomon Hodge's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 1 week 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"?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 1 week 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

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Solomon Hodge
  • Solomon Hodge's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 1 week 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!

Please Log in or Create an account to join the conversation.

More
10 years 1 week ago #132081 by Mr_Anonymous
Replied by Mr_Anonymous on topic Re: Adding Image to Item Navigation

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; ?>

Nice one. I am gonna use this in my template. Good snippet to keep. :)

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 1 week ago #132082 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Adding Image to Item Navigation
Always happy to help :)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 1 week ago #132083 by Mr_Anonymous
Replied by Mr_Anonymous on topic Re: Adding Image to Item Navigation

Krikor Boghossian wrote: If you mean within the next few (2) coming weeks, then yes.

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. :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum