Custom Asset Markup
The Custom Asset Markup plugin was created to address the issue in Movable Type 4+ where assets embedded into entries are wrapped with HTML markup that is hard coded into MT::Asset and MT::Asset::Image. Having markup hard-coded into the templates presents a number of problems:
The markup is not customizable by designers who wish to control the look and feel of embedded assets
The markup contains inline CSS styles which, by definition, cannot be overridden by user-developed CSS
The markup has been found to be incompatible with a small number of environments, particularly those in tightly controlled corporate Intranets.
This plugin provides administrators with a way to easily and arbitrarily customize the inserted markup via the template system.
Compatible with MT 4.1 and 4.2

Carlo
July 3, 2008 1:30 PM | Reply
Great plugin. I had to go into MTs files before and remove the code by hand. Obviously that was not the best solution, but with this the problem is gone :)
josedante
July 12, 2008 1:16 PM | Reply
Hello Jay, Firefox won't let me access the download page, due to some certificate problems.
Jay Allen
July 12, 2008 3:12 PM | Reply
What version of Firefox are you using? I use Firefox as well as do many others who access the site. Do you not get a dialog that asks whether you want to accept the certificate? If not, you may have checked a box in your settings that says to refuse invalid certs without asking.
The cert is self-signed at the moment, because I didn't feel like shelling out another $500 for another cert. It's quite safe if that's what you're worried about. If I were your bank or something it would be different.
josedante
July 12, 2008 7:22 PM | Reply
I'm using Firefox 3 as my default browser. I actually was able to access the download using Internet Explorer 8 already, but thought you would find useful to know that some people may run into this problem. Internet Explorer raises the same concern with the certificate, but does something Firefox doesn't, which is to provide a link/button to override security this one time.
Firefox just gives me the following alert message:
"trac.endevver.com uses an invalid security certificate.
The certificate is not trusted because it is self signed. The certificate is only valid for trac.strangecode.com
(Error code: secerrorcacertinvalid)"
and then shows me a blank page. One of the many Firefox plugins I've installed may be to blame, too.
By the way does your plugin work with MTOS 4.2rc3?
Jay Allen
July 14, 2008 12:34 AM | Reply
Correction: "does something which your Firefox 3 browser doesn't". :-) I'm using v2 still so I can't really test it out but I do know that I can make v2 act exactly that way by changing the settings so that it doesn't ask me about certificates.
However, that is not the default in v2 (maybe it is in v3) and so I get this dialog. When I hit OK, I get the site. The setting is in the advanced tab.
That looks like something I'll be changing as soon as I get three because that's just dumb. Self-signed certificates are perfectly valid if you trust the source or if you (as a visitor) don't really have any sensitive data being transmitted. shrug
Anyway, thanks for the report. I doubt I'm going to change what I'm doing at the moment, but we'll see about later.
Jay Allen
July 14, 2008 12:41 AM | Reply
Not sure. Haven't tested it. If you do, let me know if it isn't.
josedante
July 14, 2008 10:34 PM | Reply
My advanced settings are just like your screenshot. Must be a Firefox bug, then, or some mixup with my plugins. Anyway, If it´s not your site's bug I don't think you should have to change anything. I, certainly do trust the source and want to use the plugin, which is why I looked for a way around this issue with IE8.
Custom Asset Markup in MTOS 4.2rc3? I'm testing it. first issue. I had to manually create the necessary Global System Template. Haven't customized yet. I'll let you know if I run into problems with that.
Jay Allen
July 28, 2008 8:48 PM | Reply
v0.6-beta fixes the issue of the custom asset markup global template not being created when you view the global template listings via certain paths.
Sabine
August 15, 2008 1:44 PM | Reply
I think there is a bug in plugin Custom Asset Markup 0.6.1-beta.
There is a problem with this plugin and german MT version 4.2-de.
mt:if tag="AssetType" eq="image" works in MT version 4.2-en
mt:if tag="AssetType" eq="bild" works in MT version 4.2-de
Is that a bug in Movable Type or in plugin Custom Asset Markup?
Jay Allen
August 15, 2008 6:10 PM | Reply
Hi Sabine. Unfortunately, there are two problems:
While there may be a bug that you're encountering, I can't see any way that it has to do with Custom Asset Markup. Did you try whatever you're trying to do without the plugin installed?
Sabine
August 16, 2008 1:58 AM | Reply
Hi Jay,
The tags works in the respective language version. I can adapt the code exactly as my wish.
But the orginal template customassetmarkup.mtml did not complete work in german MT version.
After the change from mt:if tag="AssetType" eq="image" to mt:if tag="AssetType" eq="bild" the template work complete.
I was long time to look for reason why the template not complete work.
Maybe it should documented that for other language versions the orginal template customassetmarkup.mtml not complete work. And the use of customassetmarkup-debug.mtml is to be recommended.
The plugin is very flexible and I am very glad to use it.
Beau Smith
June 24, 2009 12:42 AM | Reply
Similar to: Assetylene