I have just started using Joomla and I really like what I've seen so far!
I have a question regarding module development. I have created a simple module that grabs posts in the news category from my site then displays them in a module on the home page. Everything is working fine except I don't know how to display a thumbnail from the post. For example, in my view file, I have some code like this:
Code: Select all
<?php defined('_JEXEC') or die('Restricted access'); ?>
<div class="grid-6">
<h4>News about tea...</h4>
<ul class="news-wrap">
<?php foreach($rows as $row) { ?>
<li class="clearfix">
<h5><a href="<?php echo $row->link; ?>"><?php echo $row->title; ?></a></h5>
<small class="post-date"><?php echo $row->created; ?></small>
<a href="<?php echo $row->link; ?>"><img src="<?php echo $row->images; ?>" alt="Post image" /></a>
<p><?php echo limit_words($row->introtext, 24); ?> <a href="<?php echo $row->link; ?>">Read more »</a></p>
</li>
<?php } ?>
</ul>
</div> <!-- end grid-6 -->
Any help would be appreciated.
Thanks