In case you enabled the description of the image field and want to use this description e.g. for the slide_text you can use the code below.
// add slide_text variable from imagefield description if (isset($result->[image_field]_data)) { $data=unserialize($result->[***image_field***]_data); if (isset($data['description'])) { $slider_items[$key1]['slide_text'] = $data['description']; } }
Comments:
In this case only the imagefield is added in the view. Automatically also the serialized data of the imagefield is added. To get the description from the serialized data the data has to be unserialized.
Recent comments
19 hours 54 min ago
19 hours 54 min ago
19 hours 55 min ago
19 hours 55 min ago
19 hours 56 min ago
19 hours 57 min ago
19 hours 57 min ago
19 hours 58 min ago
19 hours 58 min ago
19 hours 59 min ago