Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Good day

I have created a view, but am not sure how to make the documents type clickable. At the moment you click on the label it works, but not when you click the type. See attached, second example is the desired results and first one is the current results. I would like to take away the label and leave just the type and make it clickable.

On the other hand, how can I determine the document size and display it on the table as per second example.

current and desired resuts

share|improve this question
Did you mean to attach something? – Charlie S Oct 31 '12 at 13:38
Are you talking about the MIME icon? – Chapabu Oct 31 '12 at 15:59
@Charlie, I was meant to attach something but dont have enough reputation score to do that. – Tebogo Nov 6 '12 at 6:34
I have attached example of current and desired results – Tebogo Nov 8 '12 at 5:36
am using drupal 7 – Tebogo Nov 9 '12 at 7:07

I know its not a complete answer, but may help. Icon:

$icon = theme('file_icon', array('file' => $file));

File size:

share|improve this answer
Where do we apply this coding? – Tebogo Nov 13 '12 at 13:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.