• Currently 5/5
  • 1
  • 2
  • 3
  • 4
  • 5
Assetylene


Adds the ability to use a custom template module to control the insertion of assets into a post. It also offers a new field for entering a custom caption when inserting the asset.

Requirements

4 Comments

Brad, can I direct your attention to this Forum thread about using Assetylene, please?

The summary is that Assetylene worked wonders for images inside my entry, but it appears to be modifying new images that I enter into my custom field, in such a way that the new custom field images don't show up when called upon.

http://forums.movabletype.org/2009/01/assetylene-broke-my-custom-field-asset.html

Thanks!

If you are storing images in custom fields, Assetylene will wrap those images in its HTML just as it does for images inserted into a post.

So if you were trying to access the ID or URL of those custom assets, your code will fail. (Trust me, I spent hours trying)

Instead, get the entire asset. For example, if your custom field is named "Tease Image," then the tag for it may be "entrydatateaseimage" and the following code will produce the block of Assetylene-formatted code:

produces something like:

Whoops, sorry. Code like:

<mt:entrydata_tease_image />

Produces Assetylene-formatted HTML such as:

<div class="myClass">
    <img src="my_image.jpg">
</div>