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

nGen not displaying image

Development and Programming

Annette Gleason's avatar
Annette Gleason
9 posts
16 years ago
Annette Gleason's avatar Annette Gleason

I have been trouble shooting this for hours, I am new to EE, and am hoping someone can help.

I am using MAMP to set up my site locally. I’ve installed nGen, everything appears to be working just fine.

My File Uploads settings are as follows: Server Path to Upload Directory: /Applications/MAMP/htdocs/ee/images/uploads/ URL of Upload Directory: http://localhost:8888/ee/images/uploads/

Attached is a screenshot.. see how the “boxer-puppy_1_1.jpg” is definitely linked correctly. When I click on the thumbnail in the post editing screen, it does link to the image properly. ().

BUT when I view my site, it displays the path of the image, INSTEAD of the image. /ee/images/uploads/boxer-puppy_1_1.jpg <—- This should be the image… why is it displaying this path?

Is there a bug with using MAMP? I’m at a loss!

screenshot1.png screenshot2.png screenshot3.png

       
Peter Lewis's avatar
Peter Lewis
280 posts
16 years ago
Peter Lewis's avatar Peter Lewis

Agleason,

You haven’t included your template code, but that’s how ngen outputs, so you have to wrap it in the appropriate html markup:

{my_image_field}

If you want to get the dimensions of the image see Mark Bowen’s post here.

Alternatively combine with the imgsizer plugin:

{exp:imgsizer:size src="{my_image_field}" width="100" alt="{title}"}

Remember you can also use it within a FFMatrix to combine it with over fields such as alt text and url link.

Peter

       
Annette Gleason's avatar
Annette Gleason
9 posts
16 years ago
Annette Gleason's avatar Annette Gleason

Wow! That’s all I was doing wrong! I’m SO happy that you helped me out, thanks so much!!

       

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.