I am trying to find some way where I can control what content are shown based on uploaded files. For example:
If the uploaded file is a .jpg or .png image, somewhere in the body of the article will display the thumbnail of the uploaded image.

It is kinda like to display file icon based on file extension of file value field. But I don't know how to do it. Can anyone offer a snippet?

Thanks a lot!

Comments

markus_petrux’s picture

Status: Active » Closed (duplicate)

This is the 3rd time you have reported this issue in this queue:

#590276: how to display content based on uploaded files extention
#591100: display content based on uploaded files extention

Both times I marked your issue as a duplicate of yet another issue that you opened in the FileField queue:

#590274: how to display content based on uploaded files extention

Could you please stop opening more issues about this? Thanks!

usabilitydeveloper.com’s picture

Hi sorry for bothering.

I'd like to delete #590274: how to display content based on uploaded files extention

and keep this one.

thanks

markus_petrux’s picture

Your request in NOT related to CCK. It is however related to the module that implements the upload files feature.

Aside, you're asking for a code snippet, and so this kind of requests are better filed in the forums, as you also did here, so I would even suggest to close the issue you have filed in the FileField module queue, and see what the forum post can give you. If you cannot get this in the forums, then I would suggest to hire someone that does this for you.