Not a developer? Go to MovableType.com

Documentation

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="posttype"$>
<li>
<mt:If name="entry
type" eq="photo">
<$mt:EntryPhoto$>
</mt:If>
<mt:If name="entrytype" 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>

Back

2 Comments

thirteencentpinball

thirteencentpinball on September 30, 2009, 1:46 p.m. 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

thirteencentpinball on September 30, 2009, 1:49 p.m. 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>