Closed (fixed)
Project:
Views Slideshow
Version:
6.x-2.2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2010 at 18:27 UTC
Updated:
26 Jul 2010 at 05:50 UTC
I am using Views Slideshow Module in ThumbnailHover mode, it needs a single view field to get its thumbnails, so I need to combine two fields into one (an imagecache image field and a regular image field) such that if the regular image field is empty the view field displays the imagecache thumbnail. That way if the user supplies a thumbnail it overrides the imagecache generated thumbnail. Does anyone know how to combine the two view fields into one?
Comments
Comment #1
intyms commentedexclude from display your fields.
add a "global: custom text" field.
write the following code inside of the CustomText field:
field no.1 and field no.2 you will find below the text area where you have to put this code.
set back to active or change to fixed when you test this solution.
Comment #2
captaindav commentedThanks for your response. I ended up doing something similar:
1. Install the Views Custom Field Module
2. Entered the following PHP code into a Views Custom Field:
Note that in my case I had "field_image" and wanted to use its automatically generated imagecache thumbnail for the HoverThumbnail unless another (over-riding) thumbnail was uploaded in the "field_image_thumbnail" field.
Comment #3
captaindav commentedComment #4
intyms commented@#2 captaindav
Thanks for posting.
Nice solution!