default userpic

Custom Field Image Asset Display

Vote 0 Votes

I've created a custom field (MT 4.2) that is used to contain an image that is then displayed within the entry. The first entry that I created uploaded and displayed the image with no problem, and still does. The subsequent entries don't display the image, nor do they display the image when I go to the edit entry screen (though the first entry does.) Additionally, the images are being properly uploaded to the correct directory

The code that I'm using to display the image (field name "entryphoto1")and the image caption (field name "entrydataphoto1caption") is as follows:

" width="300" alt="" />



<p></p>

As I've said, this worked fine on the first entry but no entries since then. Have I done something wrong, or is this a bug in how Custom Fields is handling image assets?

Reported on Movable Type 4.2

1 Reply

| Add a Reply
  • Let's try that code bit again:

    <mt:IfNonEmpty tag="entry_photo_1">
    
    <div style="float:right;width:300px; margin: 0 0 9px 9px;">
    
    <mt:entry_photo_1Asset>
    <img src="<mt:AssetURL />" width="300" alt="" />
    </mt:entry_photo_1Asset>
    
    <MTIfNonEmpty tag="entrydataphoto_1_caption">
    <p class="photocaption"><mt:entrydataphoto_1_caption></p>
    </MTIfNonEmpty>
    
    </div>
    
    </mt:IfNonEmpty>
    

Add a Reply

Forum Groups

151 405

Last Topic: MT Interface Missing by Sherri on Nov 10, 2008

36 144

Last Topic: Installation can't finish by Drazend on Nov 10, 2008

34 93

Last Topic: Creating your own Plug-in by jondauz on Nov 5, 2008

10 33

Last Topic: new licensing confusion by Neil Epstein on Aug 14, 2008

code.sixapart.com

62 226

Last Topic: Callback after blog publishing. by Tomato Interactive on Oct 27, 2008

34 98

Last Topic: Ajax Rating Plugin by kiran on Oct 17, 2008