DTML for getting content type of files in a folder?
14 Apr
2000
14 Apr
'00
6:50 p.m.
Hi, I have some folders which have arbitrary number of files of varying content types. A DTML Method is supposed to list them, and give them custom icons based on content-type. I can use getContentType() directly on a file object, but I can't figure out how to use it on a sequence item. What is the proper way of doing this? Here is not-working code for what I'd like to do: <dtml-in "objectIds(['File'])"> <dtml-if "sequence-item.getContentType()=='text/css'"> <dtml-var css_icon> </dtml-if> </dtml-in> Any suggestions? Thanks, Joe
9489
Age (days ago)
9489
Last active (days ago)
0 comments
1 participants
participants (1)
-
Joseph Santaniello