Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Drupal Node as a Gallery Addendum

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,343
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 18, 2010

I was asked about adding title text to an image and linking the two. Because this is already included with the ImageField module, we just need to enable it and add it to our view.

Hope this helps!

Original video is here:
http://www.youtube.com/watch?v=kRnfhmTG3qI

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (drupalguyintexas)

  • When using image field to upload multiple images for a node, how do you limit the teaser display to only one image? It always wants to display all of them instead of just one of them? Not showing the image is not an option, and uploading a single image to a separate image field seems wasteful and redundant. Any tips?

  • @LowkeeLT I think the ConTemplate module might be right for you. It will allow you to customize your teaser to only include the first image, as well as any of the other content that you have for your node. I have a video going over some of the basics of it posted on my channel. Good luck, and let me know if that works for you!

  • Btw, I recommend keeping your styling in CSS files and not in a view. Views are preferably used to structure data as far as I know. I also added some styling to the photo HTML containers like a static height so when you have an empty title the grid will still look good with even rows. Thanks for the help and keep up the good work!

  • @GezondheidAanpakken - I agree about using CSS whenever possible- what code are you using to keep the row height similar?

    I see views as a way to structure data, but also fit it in with CSS as well. The way I describe it to other people is that it's like running a query, but applying a style to that query. Because of the second part of that statement, I use Views as not just a data structuring, but as a way to create dynamic pages with my content.

  • @drupalguyintexas

    I added this (to layout.css) to keep the row height similar:

    .views-view-grid .views-field-field-photogaller­y-photo-data { text-align: center; display: block; line-height: 12px; height: 30px; width: 125px; padding: 1px;

    }

  • @GezondheidAanpakken

    Interesting. I was thinking about just adding a height to the table itself, but I prefer the CSS anyway. Thanks!

see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • Hi again. A video response...nice! Haha, "gezondheidaanpakken" is dutch. It means something like "improve your health", my website is about self healing.

    Anyway. Yes, this is what i ment! I struggled with flexifield and some other dev modules. They did not work at all and some people suggested just to wait for cck3. So I grabbed a beer and started waiting... and then I saw your solution and it works, awesome!

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