Drupal Gallery Revisited - Using Single Nodes as Galleries

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,148
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 4, 2010

Using CCK fields to create dynamic galleries is awesome. But what about using a node as a single gallery? Most gallery modules already do this, but don't exactly use CCK.

I like the use of CCK because the pictures can be used over and over again. So what to do? Simple! Create a view with an argument that limits to the NID, then apply that view as a block to the content field and remove the viewing of the pictures in the node displayed. If that doesn't make sense, hopefully the video will.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 5 dislikes

Link to this comment:

Share to:

Uploader Comments (spxero)

  • This is probably a silly question... Can you move the "add comments" to below the gallery block, instead of above as in this video?

  • @bart2019 I believe there are two pretty easy ways to do this- the first is to put it in your theme. You can find more info at this page- node/48816 ( put drupal.[org]/ in front of that)

    The second option is to add a CCK field that pulls a view- project/viewfield (put drupal.[org]/ in front of that)

    Let me know if you want me to do a video over this, I think it is a very interesting challenge.

  • i not complete with this video. can you create other one? i try to do through this video and until when i view content then is not show the images. i don't know what happened?

    i hope you understand brother.

    Thanks

  • @thecellcard If I understand you correctly, you may need to make sure your blocks are showing on the correct page. What this does is create a view of images, save them as a block, then disable images from showing on the node and instead show this view. Does that make sense?

see all

All Comments (21)

Sign In or Sign Up now to post a comment!
  • @new2lw Are you still having trouble with this?

    When you say you are adding more images and drupal groups them, are you adding into the same CCK field or into a new CCK field? I mean, if your CCK field is photo_picture, are you adding pictures to photo_picture or creating a new CCK field like photo_picture2?

    If you have any more questions send them to @drupalguyintexas . I'm trying to filter all my newer videos through that page instead of this one. Thanks!

  • @new2lw In Drupal 6's Views, there is an option to "Group Multiple Values". Uncheck this and they will not be grouped together in the view. I haven't verified if this is or isn't in Drupal 7 yet. It won't let me link, but I'll send you a screenshot of what I am talking about.

  • Specifically, I can't seem to get what you do at 5:40 to work in drupal 7 >.<

  • Can't figure out how to separate the fields, as I add more images drupal seems to group them into the field that I added. Another workaround might be to just add another field in the content type every time I want to add an image, but these work arounds are a bit long winded. If anyone that has knows what I might be doing wrong it'd be cool to hear it. I like this technique quite a bit but looks like I'm going to have to get some sort of gallery module.

  • I just switched web hosts and am trying to set up a gallery like this again. All the modules except "views" are now integrated into drupal 7 core, problem is the image field module won't "ungroup" in views and only line up straight verticle. The only workaround I've found is to make a separate gallery page for each image, only adding one to the menu, views of course gathering all image field images and sorting them into the one block. The new drupal also colors the grid slightly different.

  • YOu Rock Bro... There is two things that people really want on a content website, Video displays with playlist like mediafront and photo galleries. Thanks for the great video!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more