Keyword

Author related items image

  • Chrissovalantis Zervas
  • Chrissovalantis Zervas's Avatar Topic Author
  • Offline
  • New Member
More
5 years 8 months ago - 5 years 8 months ago #171348 by Chrissovalantis Zervas
Author related items image was created by Chrissovalantis Zervas
In the author related items block, I want to show the item image. I tried
<?php foreach($this->authorLatestItems as $key=>$item): ?>
	<div class="">
		<a href="<?php echo $item->link ?>"><?php echo $item->title; ?></a>
			<img src="<?php echo $item->image; ?>" alt="">
	</div>
<?php endforeach; ?>

but it doesn't seem to work. How can i do it?
Last edit: 5 years 8 months ago by Chrissovalantis Zervas.

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

More
5 years 8 months ago #171350 by JoomlaWorks
Replied by JoomlaWorks on topic Author related items image
Try $item->imageMedium or $item->imageLarge (if I recall correctly) - the point is to have the size appended to the word "image".

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

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

  • Chrissovalantis Zervas
  • Chrissovalantis Zervas's Avatar Topic Author
  • Offline
  • New Member
More
5 years 8 months ago #171354 by Chrissovalantis Zervas
Replied by Chrissovalantis Zervas on topic Author related items image
Yep! That's it. Thank you, Fotis!

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

More
5 years 8 months ago #171357 by JoomlaWorks
Replied by JoomlaWorks on topic Author related items image
You're welcome.

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

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


Powered by Kunena Forum