How to list certain properties in the FileListing template?

hcs
hcs
Vote:
 
The FileListing template gives an overview of a set of files uploaded to a given directory. So far so good. But the standard list only displays filename, size and date. I need the list to also display the 'title' and/or 'comment' attached to the file during upload through the File Management in EPiServer edit/admin interface. For some reason, retrieving these extra values are not as straight forward as getting eg. the FileName value (Container.Name, Container.Size etc.). Can anyone help me out here..? TIA
#17444
Mar 25, 2008 19:33
hcs
Vote:
 
Nobody who can explain why the API doesnt easily hand out 'file comment' data, or other of the inputs you can attach to a file, when you upload it via the File Manager in EPiServer..? I really need to extract this info, to make the FileListing pages more user-friendly.
#18217
Mar 25, 2008 19:43
Vote:
 
Hi there, The API provides access to the UnifiedFile object so you can access the properties you require something like this: <%#Container.UnifiedFile.Summary.Title%> <%#Container.UnifiedFile.Summary.Comments%> Cheers, Jeremy.
#18218
Mar 25, 2008 19:43
hcs
Vote:
 
Ah yes, the one method i haven't tried. Thanks.
#18219
Mar 25, 2008 19:43
Vote:
 
This doesnt work for me... is it a version problem? 4.30? right? /John
#18220
Mar 25, 2008 19:43