Hi Everyone,
I am using the K2 Image Wall module (which i think is great, but customer support almost inexistent sadly).
The K2 Image Wall module pulls the image from an item and displays the title. When you click on it, it takes you to the item page. What i want to do is make it display the name of the category the item is in... but still link to the item itself. I have identified the following to be the code which displays the image and title:
<div id="captifyContent"><?php if (!($item->image == "")) : ?> <a href="<?php echo $item->link; ?>"> <img src="<?php echo $url ?>modules/mod_k2imagewall/image.php?width=<?php echo $image_width ?>&amp;<?php echo $image_height ?>&amp;cropratio=<?php echo $crop_width ?>:<?php echo $crop_height ?>&amp;quality=<?php echo $quality; ?>&amp;image=<?php echo $item->image;?>" class="captify" alt="<?php echo $item->title; ?>" /> </a><?php endif; ?> </div>
Now i presume that
alt="<?php echo $item->title; ?>"
displays the title of the item. What do i need to change this to to make it display the category name the title is in?
I have tried:
$item->category
$item->category->name
$item->category->title
$item->catid (this displays a number, but not the category number)
$item->cat
All of them do not display anything except catid... which displays a number. I have also tried many others, but non seem to work...
Any help will be greatly appreciated!