<mt:EntryPhoto>

This template tag outputs the image (img) parameters for a Photo post.

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.

2 Notes

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.

     " />

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>

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.