default userpic

Image Cropper template question

Vote 0 Votes

Prior to installing imagecropper plugin, I used this code to display scaled-down thumbnails for the last 10 entries:



"/>

I decided to install imagecropper because the scaled-down image wasn't always suitable. Now I have installed imagecropper and have defined a prototype thumbnail of 85px square. So, for example, I have a thumbnail called "samplepic1.jpg (Square)" among my assets, which is the cropped version of samplepic1.jpg, and samplepic2.jpg (Square) etc.

So here's my question: how do I display the cropped images instead of the scaled-down thumbnails? The sample code provided in the documentation has MTEntryAsset id=136 but I not using a specific reference to a specific asset in my templates. Can anyone help me rewrite the code so I diplay the cropped version rather than the scaled-down version of the images for the last 10 entries?

Reported on Movable Type 4.3

2 Replies

| Add a Reply
  • This is the code I used to use to display the scaled-down thumbs for the last 10 images:


    </mt:Entries>
    <mt:EntryAssets limit="1">
    <img src="<$mt:AssetThumbnailURL width="80"$>" />
    </mt:EntryAssets>
    </mt:Entries>

    I'm trying to figure out how to do the same thing using imagecropper. Thnks

  • Did you ever figure this issue out? I have the exact same question. I can get it to use the last image cropper cropped thumbnail that I associate with a post but the label portion does not seem to work.

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012