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

Extension: Weegee - Add thumbnail image for entries on the EE CP Edit page

Development and Programming

Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

Needless to say, this is useful when you’re using a “weblog as gallery”.

Unfortunately, right now this only works on a field whose Field Type is “File” – which is another 3rd-party extension, by Mark Huot. You can get File by Mark Huot here.

You enter one field id (the field id for the File field you have) – and Weegee will put a thumb from that field on the Edit page (see attached pic). This also only works with one weblog right now. Updates will happen if anyone has suggestions - or anyone cracks this open and sees cool ways to update it. Suggestions welcome.

You can download Weegee here.

       
Bruce2005's avatar
Bruce2005
536 posts
17 years ago
Bruce2005's avatar Bruce2005

This looks brilliant! Nice work. I see field id, if thats grabbing the image url, would it work if one entered another field id for image ranther than File ext? ty .

       
rockthenroll's avatar
rockthenroll
485 posts
17 years ago
rockthenroll's avatar rockthenroll

This is incredible and exactly what Ee has been missing for this use. Nice job, dude!

Pleeeeeeeease let it support more than one weblog.

       
rockthenroll's avatar
rockthenroll
485 posts
17 years ago
rockthenroll's avatar rockthenroll

Just a note: if different weblogs use the same custom field it still pulls thumbs in for you, regardless of them being in different weblogs. Nice!

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.
Nice job, dude! Pleeeeeeeease let it support more than one weblog.

Thanks! Believe me I want to develop this further, but I have a looming deadline, and it works for my purpose right now. I literally thought of this only this morning (because my “gallery weblog” was getting HUGE, even with categories, and I really needed to see what these images were) and I put it together as quick as I could. Consider this a “rough draft”.

What I’d like to do is make it so you can pipe-delimit field id’s (eg. Field ID’s: 50|37|18) to show a thumb for. It should work across weblogs, I think. I just had an idea as I typed this, too…

@Bruce2005: The reason this only works with a “File” field type right now is that File stores the upload path in a field called “field_list_items”, which is what I’m using in the query. I tried hard this morning to get it to work with a “regular” field type, but I’ve got a deadline and I wanted to get this out the door. The problem with a text field that is holding a path to an image is that it can hold the image data in different ways, and often has a “{filedir}” variable in it - and I didn’t know what the heck to do with that.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

If anyone knows how to create/cache thumbs in the CP, this Extension could use a heavy dose of that. Maybe be a little close to EE 2.0 to really matter, but I’m sure some people will be using 1.x for a while yet.

       
gridonic's avatar
gridonic
231 posts
17 years ago
gridonic's avatar gridonic

Looks good Ryan.

Just out of curiousity: wasn’t there a solution for associating a gallery / multiple gallery entries with a weblog post? This is slighltly off-topic so you’re free to ignore 😉

       
Danny T.'s avatar
Danny T.
426 posts
17 years ago
Danny T.'s avatar Danny T.

Ryan,

That’s a great extension.. It’d be mighty sweet if you can somehow figure out a way to get it for standard text fields so we could combine this with LG SAEF File Upload.

Good job mate!

       
Bruce2005's avatar
Bruce2005
536 posts
17 years ago
Bruce2005's avatar Bruce2005
Just out of curiousity: wasn’t there a solution for associating a gallery / multiple gallery entries with a weblog post?

Are you referring to solspaces gallery extension? It is quite different…

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

Nice work Ryan… looks like you have tackled the image issue head on… Good luck 😉

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.
Looks good Ryan. Just out of curiousity: wasn’t there a solution for associating a gallery / multiple gallery entries with a weblog post? This is slighltly off-topic so you’re free to ignore 😉

There is one out there, which I’ve used before. I did not want to use the Gallery Module on my current build - I try to avoid it when I can. So I went the “weblog as gallery” route. The problem there is - you can’t get a good look at multiple images at once like you can with a Gallery, so this extension takes care of that to some degree.

       
gridonic's avatar
gridonic
231 posts
17 years ago
gridonic's avatar gridonic

Totally understand.

Can’t wait until Leevi finishes his gallery module and hopefully also simplifies the entire worklflow in this approach.

       
rockthenroll's avatar
rockthenroll
485 posts
17 years ago
rockthenroll's avatar rockthenroll

@peschehimself you can do a ghetto version by enabling multiple images per entry with Huot’s file extension and out putting them within a single entry. I’ve done this before and it works great.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
17 years ago
Ryan M.'s avatar Ryan M.

I’ve done that too (File extension set to “multiple”). I even tried making those multiple files draggable - so you could re-sort them. Sort of like “File on steroids”. Ran out of time on that experiment, though. Looks like Leevi is taking things in a new direction for the possibility of “mini-galleries”, which is great.

       
Cem Meric's avatar
Cem Meric
210 posts
17 years ago
Cem Meric's avatar Cem Meric
You can download Weegee here.

web site returns this message Ryan,

Database Error: Unable to connect to your database. Your database appears to be turned off or the database connection settings in your config file are not correct. Please contact your hosting provider if the problem persists.

must be a bad time, are you working on the database?

       
1 2 3 Last

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.