Skip to content

Instantly share code, notes, and snippets.

View pierrehenri220's full-sized avatar

Peter (ピエール) pierrehenri220

View GitHub Profile
@daveaiello
daveaiello / image-entry-asset-display.mtml
Created January 14, 2014 15:53
Count and display multiple Entry Assets of the type image (photo) associated with the current entry. This is Movable Type Markup Language code to be that leverages the Movable Type Asset Manager. I created this so that Movable Type developers can see parallel constructs in MTML for a native asset type to those I created for Flickr, YouTube, and …
<mt:var name="image_asset_count" value="0">
<mt:EntryAssets type="image">
<mt:var name="image_asset_count" op="++" setvar="image_asset_count">
</mt:EntryAssets>
<mt:Ignore>
<!-- Later in the template... -->
</mt:Ignore>
<mt:Unless name="image_asset_count" eq="0">