How can I show metadata of linked file?

Yuki - May 21, 2009 - 00:24

How can I show metadata of file (creation date, updation, size of file) automatically which is linked by fckeditor through IMCE filebrowser?(like iconizer module automatically show icon according to file). Could anybody know any tricks or any module? Please help me.

Am I banned to get any solution???

Yuki - May 21, 2009 - 08:13

These days I am posting...but nobody is replying :(((

Could somebody help me

Yuki - May 22, 2009 - 06:32

Could somebody help me out or at least give me an idea how to do it?

This can be done with a little theming

xtfer - May 24, 2009 - 00:16

Get yourself the Devel module, install, visit one of your content items and go to the "Devel Render" tab. This shows you all the items in $node that Drupal is using to create your rendered content.

Look through the list and find the attached files and their metadata. You can use this information to present the file information in your theme.

Open the relevant node-.tpl.php file in your theme (or just node.tpl.php), and try inserting the relevant items into the template.

I'm not sure what specific item or row you will be looking for, but the format will be something like:

print $node->content['files']['#value'];

where content is the top level item in $node, and files and #value are its children.

xtfer.com

 
 

Drupal is a registered trademark of Dries Buytaert.