Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I am working with Views 3 and Drupal 7 and created a view to display a list of images from a given content type in a slideshow. For layout reasons, images in portrait format don't work. Is there any way to filter for "width > height"?

share|improve this question
add comment

1 Answer 1

One simple solution
in given content type, add a CCK (select list) field having option "width > height". select this field when the image is landscape. then in views add this filter too.

by doing this, only images that are "width > height" will be shown

share|improve this answer
    
thanks for your reply. this would be a solution i am not really happy with. someone would need to go through all the existing content and select this field. it is possible to select a filter for given widths or heights in views. i just thought i've missed the part where you can have the filter working for both fields, since the values are already stored in the database if you upload an image. –  rugar Nov 9 '12 at 15:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.