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

  • 2
    Did you mean to attach something? – Charlie Schliesser 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:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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