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
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Untitled.jpg | 100.54 KB | drupalcek |
Comments
Comment #1
merlinofchaos commentedComment #2
tantenic commentedHi 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:
Comment #3
anthony8i commentedHi 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
Comment #4
drupalcek commentedHello 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
Comment #5
drupalcek commentedFor 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
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.