Help - Search - Members - Calendar
Full Version: Mt 4.1 Image Upload Wrapped In <form> Tag
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
jebus
Hello,

Can anybody tell me what the purpose is of the <form> tags around the image html on an upload? Mine looks like this:

<form mt:asset-id="3" class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="some_image.jpg" src="http://www.mydomain.com/images/some_image.jpg" width="468" height="60" class="mt-image-none" style="" /></form>

My client uses the image upload in her blog posts, and the interface has changed significantly. I can't imagine what the point of the form tag is though. Anybody care to enlighten me?

Thanks.
Su-
They're used by MT to track the asset associations. It's not what comes out the other side. I'm assuming you've actually looked at a published entry first?

Do you need to care? Not especially. Just leave them alone. Nobody likes them much, but it's the way it works right now, and if something is done to change that, modifying them may break something in the future(eg. if an updater automatically tries to convert them to something else, your modified ones may not be findable).
pairacy
QUOTE (jebus @ Feb 5 2008, 03:09 AM) *
Hello,

Can anybody tell me what the purpose is of the <form> tags around the image html on an upload? Mine looks like this:

<form mt:asset-id="3" class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="some_image.jpg" src="http://www.mydomain.com/images/some_image.jpg" width="468" height="60" class="mt-image-none" style="" /></form>

My client uses the image upload in her blog posts, and the interface has changed significantly. I can't imagine what the point of the form tag is though. Anybody care to enlighten me?

Thanks.


now the <form> has been changed to <span>, but still, i dont like these additional tag.. just because of this, i have to put additional style declaration in my css to overide the 'uninvited' classes... wink.gif
pairacy
solution here! http://forums.sixapart.com/index.php?showtopic=65352
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.