ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

how can I insert a gallery category inside an entry

December 18, 2009 7:08am

Subscribe [4]
  • #1 / Dec 18, 2009 7:08am

    zupi

    283 posts

    hi guys, I want to know how can I insert a gallery category inside an entry?

    I’m doing a new website and I need to put inside an entries a gallery category I’ve created.

    I want to show the thumbs of this gallery in the entry page and when I click it an Ajax shows the pictures.

    how can I do it?

    regards

  • #2 / Jan 05, 2010 9:45am

    zupi

    283 posts

    Guys, what is going on? I have a personal license, so I think someone should help me giving directions to help use the gallery module as I need. I’ve created a gallery at this page:

    http://fundocomunitario.org.br/express/index.php/galeria/category/C6/

    But what I’m trying to do is simple to be possible to see these imagens inside an entry. how can I do it? is there a plugin? or a way I can make it happen?

    thanks,

  • #3 / Jan 05, 2010 9:49am

    zupi

    283 posts

    or maybe how can I do something like the page:
    http://expressionengine.com/public_beta/
    when I click at WATCH the VIDEO - I can see all the images from one gallery? how can I do it?

    thanks,

  • #4 / Jan 08, 2010 2:29pm

    Robin Sowell

    13255 posts

    There isn’t a default way to associate a gallery category with an entry.  You CAN associate a given gallery entry with a weblog entry- see relationships.  It’s also possible to enter a gallery category id into a custom weblog field- and then pass that to an embedded gallery tag.  A bit tricky to set up, but doable.

    For the gallery itself and integrate some js- there are a number of tutorials:
    http://5pieces.com/search/results/c0490162e52e1d0d38ca858e097c66a7/
    http://www.train-ee.com/courseware/free-tutorials/comments/24-photos-in-expressionengine-gallery-module-or-weblog/

    I’m missing some good ones I know- a search through the wiki might give you some more good ideas.

    And I personally preferred to use weblogs instead of the gallery for my images- for one, it’s just more flexible.  But there are a whole lot of different ways to approach that one.

    How you ultimately go at it will boil down to your specific site’s needs and your own personal preferences.  Sorry to not be more specific- but there really are a lot of ways to approach this.

  • #5 / Jan 22, 2010 4:38pm

    zupi

    283 posts

    hey robin, can u show me some examples of webistes? maybe something you have done it, it might help me a lot
    regards,

  • #6 / Jan 22, 2010 5:59pm

    Robin Sowell

    13255 posts

    Heh- my own site is not a showcase.  And probably not up at the moment.  The good sites were all under NDA, so I can’t link.  And I’m not sure that what I did is what you need to do.

    But fairly typical of the sites I build- I’d have a separate weblog for ‘images’ (and sometimes weblogs for ‘video’ or what have you).  Each image went in as a single entry in the ‘image’ weblog.  Now on these sites- images were almost always associated with a single ‘content entry’- if that’s not the case, the method doesn’t work well.  But anyway- as you enter each image- you associate it with the content entry- i.e. you pick the title of the entry over in say ‘news’ from a dropdown.  So you’re creating related entries

    With this method- a ‘content’ entry can have as many ‘images’ as you want.  However- an image can only be assigned to 1 entry.  (Granted, you can make more related fields and do it that way- but it HAS to be a small limited number or it’s just a mess.)

    And so typicall- we’d have like ‘latest images’- and just show the latest from the images weblog.  To handle thumbs and such- well, I did a custom module and created ‘em on upload.  But a LOT of folks use the Image sizer plugin and do it on the fly.  You can integrate w/js slideshow scripts no sweat.

    Um….  You can show the images with their associated entries using reverse related tags.  And there’s always the query module if you need something a bit more specific- I think I’d show like 2 related thumbnails, do a count of how many total images for that entry there were, then link to ‘All Related Images’ type stuff sometimes.

    And it was nice because you could categorize images- so one site, you’d have say a ‘Press Release’ section with categories- and all the press releases and on the ‘single entry’ page a couple of the related images and a link to ‘all’.  And there was also a ‘Image’ section- where you could look at the same categories- and see all the images in them.  So think- TV shows.  All… ‘Starsky and Hutch’ press releases, all ‘Starsky and Hutch’ images.  Or all images period.  Etc.

    It was just really flexible.  The big concern doing it that way is you’re really limited on an image ‘belonging’ to more than one entry.  And coming up with the resize options- but really, that was no big deal and there are a number of ways to go there.

    Also- a LOT of folks are also using matrix fields- see Cover Image with FF matrix gallery for a nice overview.  I’m a bit behind the cutting edge on the site building now, so I’m not up on that approach.  But it sounds easier on the data entry folks.  And should be compatible with 2.0 long range.

    That help?

  • #7 / Jun 11, 2010 12:28pm

    msfarrel

    33 posts

    It’s also possible to enter a gallery category id into a custom weblog field- and then pass that to an embedded gallery tag.  A bit tricky to set up, but doable.

    Hi Robin,

    how can you pass a category id from a custom weblog field to a weblog tag?

    I’ve been trying to do this to set sidebar content from a weblog entry. Right now I’m using the Fresh Variables Module to set the category id and then pass the fresh variable into the template weblog tag. It works but to be able to set it from the weblog would be AWESOME!

    Thanks.

  • #8 / Jun 11, 2010 9:11pm

    msfarrel

    33 posts

    Nevermind I figured it out. Didn’t realize you could embed a welbog inside another. This is just what I needed!

  • #9 / Jun 11, 2010 9:20pm

    Cue

    98 posts

    I think zupi is after some code examples. I should really put up some code but my bed awaits. I shall return soon!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases