Posted by ithacaindy on February 23, 2012 at 11:29pm
I'm having a heckuva time understanding how to display captions with Drupal 7 and Views 3. I'm using the default imagfield with the title as the caption. However, when I go into Views 3, I can display only the full content or teasers - no mention of the imagefield's title.
I know this is a constant issue - how are other publishers handling this - and is there a 'recipe' available?
Comments
Yeah, it's not fun trying to
Yeah, it's not fun trying to find a good solution to display photos with captions, etc...
I'm using the Gallery Formatter module which allows me to display multiple photos in an article as a gallery. It pulls info from the title and alt fields and displays them for me in my article content type in a nicely formatted gallery with the ability to show them using colorbox.
If I want to use views and display the photos elsewhere, when I create the view, I add a RELATIONSHIP to the "Content:ArticleGallery:fid" (or the image field) and in FIELDS I add "file: Photo Title" to pull the image's title.
Hope this helps.
-Joe
Image Caption Formatter
I also found the image caption formatter module for D7 works well with the imagefield. Simply enter your caption in the Title area and your caption appears underneath the image in a div of class "imagecaption".
Correction on Class Name
The class name is ".imgcaption". I used font-style: italic to change the regular style.
Seems someone would be smart enough to include this in the Drupal core and be done with so many headaches.