I am working on a media asset management system and since we have no foolproof way of knowing what KIND of media asset each uploaded file is, we have decided to use generic thumbnail icons to represent each type.
Can anyone help me with the code to use events to insert the correct link to the appropriate thumbnail icon into each record?
What I am trying to do is:
If Asset_Type = "video" then
Asset_Thumbnail=/files/thumbs/video-icon.png
elseif Asset_Type = "audio" then
Asset_Thumbnail=/files/thumbs/audio-icon.png
endif
etc.
If someone can show me some basic code snippet that handles these functions I would be grateful.