If you want to create a featured area like which will display featured entries from all the blogs in MT with featured images and entry title, the following snippet will do it for you. If an entry asset is not tagged as @footer-featured it will automatically grab the first asset linked to the entry.
<ul class="clean-list">
<mt:Blogs blog_ids="all" >
<mt:Entries tag="@footer-featured">
<li>
<mt:ignore>Display the featured image tagged @footer-featured if not found display another asset that belongs to the entry</mt:ignore>
<mt:Var name="is_featured_image_found" value="0">
<mt:EntryAssets lastn="1" limit="1" tag="@footer-featured">
<a href="<$mt:EntryPermalink$>" rel="bookmark"><img class="footer-featured-image" alt="<$mt:EntryTitle$>" src="<$mt:AssetThumbnailURL width="150" square="1"$>"/></a>
<mt:Var name="is_featured_image_found" value="1">
</mt:EntryAssets>
<mt:If name="is_featured_image_found" eq="0">
<mt:EntryAssets lastn="1" limit="1">
<a href="<$mt:EntryPermalink$>" rel="bookmark"><img class="footer-featured-image" alt="<$mt:EntryTitle$>" src="<$mt:AssetThumbnailURL width="150" square="1"$>"/></a>
<mt:Var name="is_featured_image_found" value="1">
</mt:EntryAssets>
</mt:If>
<h4><a href=""><$mt:EntryTitle$></a></h4>
</li>
</mt:Entries>
</mt:Blogs>
</ul>


Recent Comments