I came across a similar error on this thread:
http://ellislab.com/forums/viewthread/163987/
But the solution there was to change the field type to file - my field type is that already.
Here’s the sql query:
{exp:query sql="SELECT `exp_channel_titles`.*, `exp_channel_data`.*
FROM (`exp_channel_titles`) LEFT JOIN `exp_channel_data` ON `exp_channel_titles`.`entry_id` = `exp_channel_data`.`entry_id`
WHERE exp_channel_titles.channel_id like'4'
AND exp_channel_data.field_id_19 not like'0'
AND exp_channel_data.field_id_19 > '{current_date}’
AND exp_channel_titles.status not like ‘closed’
AND exp_channel_titles.site_id like ‘1’
AND ((exp_channel_titles.status like ‘Top Story’) OR (exp_channel_titles.status like ‘Featured Top Story’))
ORDER BY `exp_channel_data`.`field_id_19` asc LIMIT 6”
}
{field_id_16}
{/exp:query}
The result is showing up as
{fieldir_3}image1.jpg
{fieldir_3}image2.jpg
Any ideas on how to properly parse the filedir_3 diretory would be great.
Moved to CodeShare Corner by Moderator