Closed (duplicate)
Project:
Content Construction Kit (CCK)
Version:
6.x-2.4
Component:
General
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2009 at 18:09 UTC
Updated:
4 Oct 2009 at 19:43 UTC
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
Comment #1
markus_petrux commentedThis 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!
Comment #2
usabilitydeveloper.com commentedHi sorry for bothering.
I'd like to delete #590274: how to display content based on uploaded files extention
and keep this one.
thanks
Comment #3
markus_petrux commentedYour 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.