Show Image in CMSMS Simple Pie
Posted: Tue Apr 27, 2010 8:35 pm
Hello,
I am wanting to detect the first image in a RSS post and display it as a thumbnail. Right now, what concerns me, is that I cannot get SimplePie to display any images.
Looking forward to your response. I've attached what is currently my template code.
I am wanting to detect the first image in a RSS post and display it as a thumbnail. Right now, what concerns me, is that I cannot get SimplePie to display any images.
Looking forward to your response. I've attached what is currently my template code.
Code: Select all
{*dump your vars*}
{*<pre>{$feed|print_r}</pre>*}
<div class="item-lever">
{foreach from=$feed->get_items($start,$length) item=onefeed}
<h4>
<a href="{$onefeed->get_permalink()}" title="{$onefeed->get_title()}">{$onefeed->get_title()}</a></h4>
{$onefeed->get_date()|date_format:"%Y/%m/%d %H:%M"}
<div class="feed-content">
{$onefeed->get_description()}
<p align="right"><a href="{$onefeed->get_permalink()}" title="Read more.">Read more.</a></p>
<hr>
</div>
{/foreach}
</div>