How to list certain properties in the FileListing template?
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
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.
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.