Keyword

Related Items

  • Eyal Kattan
  • Eyal Kattan's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 7 months ago - 12 years 7 months ago #60987 by Eyal Kattan
Replied by Eyal Kattan on topic Re: Related Items

Mark Matheson wrote: If anyone is still interested, I have developed a K2 Content module that allows you to show Related Items, and most other K2 content objects, in a module position.

It is waiting for approval on the JED and here in the K2 Extension list, but in the meantime, you can download K2 Split Content from here: -

www.marathonsoftware.com.au/products/k2-split-content


Mark,

Thanks so much for sharing and I'm sorry I haven't been on this forum for a long time. Looks like you got it to work very nicely. I just tested it. I will submit a ticket on your web site with some suggestions.

On a side note, in order to get my work going, I ended up using JQuery (as suggested by another member here) inside K2 custom HTML tool to copy the related items and then null the related items on the page. Works perfectly.

I used this code:
<div class="relatedItems">
</div>
<script> 
jQuery.noConflict();
jQuery(document).ready(function(){
  related = jQuery('div.itemRelated').clone();
  jQuery('div.itemRelated').html("");
  jQuery('div.relatedItems').append(related);
});
</script> 



-Eyal

Eyal Kattan
Owner
MEDIA NEXUS INC

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

More
12 years 4 months ago #60988 by mau
Replied by mau on topic Re: Related Items
Hi Mark,
Thank you so much for your development., buy a I have a problem with the Related Items. How can I show the Image of the Related Items? I tried with the line below inside <?php foreach($item->relatedItems as $key=>$value): ?> in default.php:

<img src="<?php echo $value->image; ?>" ?>" />

but nothing is parse in $value->image

Can you help me?
Thanks.

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


Powered by Kunena Forum