I'm currently writing a plugin that returns a result set comprising channel_titles and channel_data. I have a file field in there, so the columns from channel_data are formatted like {filedir_1}filename.jpg
Now, I figure there must be a way to use this information so that I can call the file field type tags (like {field:size}) or the tag pair (like {field}{path}{/field}) from my template, but I don't have a clue how to do this and I can't find any documentation on it. Can anyone help?
In case this isn't clear, here's an example:
You can see, I'm manually converting that string to the path, and it's ugly as sin. Ideally, I'd like to be able to use that file field type in exactly the same way as it's used in {exp:channel:entries}.
Anyone know how to do this?