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

Getting Image Sizer to work within Query mod

Development and Programming

Genevieve's avatar
Genevieve
52 posts
15 years ago
Genevieve's avatar Genevieve

Is there a way to get ImgSizer to work within exp:query tags? I can return the image I want with my exp:query query, but when I wrap it in imgsizer tags, the query mod dismisses the everything in those tags. Any help would be greatly appreciated! 😊

       
ender's avatar
ender
1,644 posts
15 years ago
ender's avatar ender

parse=”inward” on the exp:query tag.

       
Genevieve's avatar
Genevieve
52 posts
15 years ago
Genevieve's avatar Genevieve

Hmm…that doesn’t seem to be working for me. It’s also not parsing the {filedir} for image fields called in the query. When I reference my image field in the query mod loop (without wrapping it in image sizer tags–when I DO wrap it in image sizer tags, no data is returned), the source code shows that the image field data is returned as:

https://ellislab.com/asset/images/showcase/filename.jpg

Any ideas for me?

       
box-head's avatar
box-head
177 posts
15 years ago
box-head's avatar box-head

Hi Genevieve,

I’m running into the same problem. Did you manage to get anywhere with it?

Thanks

       
Genevieve's avatar
Genevieve
52 posts
15 years ago
Genevieve's avatar Genevieve

Yes, I did find a solution to this in another thread (which I can’t find now, or I’d point you there). In my query where I called the image field, I did a replace like this:

REPLACE(d.field_id_26, ‘https://ellislab.com/asset/images/team-photo/’, ‘http://example.com/path/to/filedir_1/’) AS image

And then called {image} within the imgsizer tags as usual. Worked like a charm!

       

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.