Hello i am a view module user. And I need help (drupal 5.7) I am pretty new drupal user..

I am using views to create top 3 read news. And beside title i show a small picture (52px x 52px - using imageCache + cck)

If i put - upload in cck/ image field more then one image ( 2,3 or more), then all the images are shown in top 3 read block. How can i show only FIRST picture - (only ONE)?

And display other pictures (1,2,3..) only in full contetnt story.

Which function i need to change with template.php and how? Can i do it with some template?
Or can i do it some other way?

I hope you understood my problem.

Thanks in advance

CommentFileSizeAuthor
#4 Untitled.jpg100.54 KBdrupalcek

Comments

merlinofchaos’s picture

Project: Views (for Drupal 7) » ImageField
Version: 5.x-1.6 » 5.x-2.1
tantenic’s picture

Hi i'm using drupal 6.3. But mybe that works for you too.

I've put a file called "content-field-field_bilder-story.tpl.php" in

sites/all/module/cck/themes/

"bilder" is the name of my imagefield.

This is the code:

  if($teaser) {
    if(count($items) >= 1) {
       print $items[0]['view'];
    }    
  } else {
    include ("content-field.tpl.php");
  }
anthony8i’s picture

Hi i imagine you are using the image field available in cck, then in views you will be having one handler where you can select the option where you will find four options 'Group Multiple Values','Do Not Group Multiple Values','Show first value only','Show Last value only', in which you can select the option Show first value only which will display only the first image.

if the above idea doesnot work out for your case try the function _views_view_table(if table view).

with regards,
Anthony Adaikalaraj.A

drupalcek’s picture

Project: ImageField » ImageCache
Version: 5.x-2.1 » 5.x-1.5
StatusFileSize
new100.54 KB

Hello me again.. thenks Anthony but I have only found 2 options in view handler options:
Image: Showpicture (field_Showpicture) handler :
-Group multiple values
-Do not group multiple values

Am i missing some other module, to use the other two possibilities you mentoint (Show first value only','Show Last value only')

I looked closely in my modules, there is no module called imagefield.. only
I think i am using Imagefield 5.x-1.2-rc1 in modules under CCK it is : Image 5.x-1.2-rc1
When i look on FTP there is directory called imagefield. So i think this is it.

I am using List view.. to show my content.

Thank you again

I atteched CCK module.. i have instaled

drupalcek’s picture

Project: ImageCache » Content Construction Kit (CCK)
Version: 5.x-1.5 » 5.x-1.7
Component: Code » Usability
Status: Active » Fixed

For all you out there... i had to upgrade my CCK module version from cck 5x1.6. to 5x1.7 now i have these two choices in views module and it looks like there are working SUPER..
It's easier to find when someone tell you what to look for :)

thanks boys !!

NICE JOBE

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.