We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Image sizer custom field problem

Development and Programming

garymcginty's avatar
garymcginty
6 posts
17 years ago
garymcginty's avatar garymcginty

I am trying to put , instead the complete path to my image () just the correspondent custom field image name in the src imagesizer option.

Using this the code:

{exp:weblog:entries weblog="blog" limit="25"} <div id=”articles_tit”> {title} </div> <div id=”articles_body”> <div id=”thumbs”> {exp:imgsizer:size src="{mainimage}” width=”112” alt=”speed tree” id=”img_speedtree” }</div> <a href=”http://{title_permalink=">{summary} </div> {/exp:weblog:entries}

but doesnt work. If I open source view I dont see any output for the imgsizer.

But if I put, instead the name of my custom field (“{mainimage}”), the complete path for the image, then I can see the thumb. But this is not very helpfull if I to loop thru my 25 last entries.

Any help?

       
garymcginty's avatar
garymcginty
6 posts
17 years ago
garymcginty's avatar garymcginty

I put the “image.jpg” in my custom field “mainimage” and in the imgsizer tag I put just the name of my field whitout src. This “{mainimage}” instead of this src=”{mainimage}”.

And now is working perfectly.

Many thanks for this plug in. Will save me lot of time…

       
Meirion's avatar
Meirion
127 posts
17 years ago
Meirion's avatar Meirion

Are you sure that works?

If you just pass the imgsizer plugin the image filename how does it know to find it in (as per your example) the “/imgs/blog/software” directory?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.