<mt:EntryPhoto>
This template tag outputs the image (img) parameters for a Photo post.
Example:
This template tag is related to the custom fields that are automatically generated when you use Motion template sets. It can only be used with blogs created with Motion template sets.
Example:
<mt:Entries>
<mt:EntriesHeader>
<ul>
</mt:EntriesHeader>
<$mt:EntryPostType setvar="post_type"$>
<li>
<mt:If name="entry_type" eq="photo">
<$mt:EntryPhoto$>
</mt:If>
<mt:If name="entry_type" eq="link">
<$mt:EntryLinkURL$>
</mt:If>
<mt:If name="entry_type" eq="embed">
<$mt:EntryEmbedCode$>
</mt:If>
<mt:If name="entry_type" eq="audio">
<$mt:EntryAudio$>
</mt:If>
</li>
<mt:EntriesFooter>
</ul>
</mt:EntriesFooter>
</mt:Entries>
This page was last updated on 2009-03-26, 11:48.
thirteencentpinball
September 30, 2009 1:46 PM | Reply
This appears to break. After much testing I went back to some other code and managed to get this to work, to display an image rather than a link.
thirteencentpinball
September 30, 2009 1:49 PM | Reply
This appears to break. After much testing I went back to some other code and managed to get this to work, to display an image rather than a link.
Sorry, that's: <mt:If tag="EntryPhotoAsset"> <mt:EntryPhotoAsset> <img src="<mt:AssetURL />" /> </mt:EntryPhotoAsset> </mt:If>