Skip to content Skip to navigation

Showing Only the First Image in the Teaser for a Drupal 7 Image Field

By default, a Drupal 7 image field that is set to contain multiple images, will display all of the images in both the teaser and full node view. While desirable, there is no option when creating a view to only show the first image in the teaser. This can be accomplished, however, with the new Drupal 7 field-level template-hint.

In order do this globally for a field named "field image" the following code in a template file named "field--field_image.tpl.php"

<div class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>


Of Photoshop and Dresses

A good job in Photoshop is like a great dress. If a woman is wearing a great dress people will think, "What a beautiful woman" when she walks in the room and not even notice the dress. A mediocre dress overpowers the woman. Likewise, with good work in Photoshop, people will only notice the beauty of the image and never realize what was done to get it there.

Oringinal post: http://mbarrick.livejournal.com/960380.html


[Gothic BC] Changing the Picture of the Day

Last night and today I did some messing around with the "Picture of the Day." Clicking on the image link from the RSS feed now goes directly to the appropriate post in the gallery. The view of the current and previous pictures of the day now has a friendlier URL and a cleaner look.


Pages

Subscribe to Front page feed Subscribe to Front page feed