I am trying to find a method to style an attachment table. User comments have been "would it be possible to right align the size column?", but I am not sure about how to theme this specific column / cell.

Should I hack one of the Drupal core modules and insert a tag in the specific table cell? If so, which module controls the layout of the attachment table in view mode?
However, I do not favour hacking the core modules - prefer to use my themable template.php, but again not sure about how to gain access to the right function.

Any suggestions are more than welcome.

Regards,

Svend

Comments

dodorama’s picture

You should be able to do that using the theme system, a layer of the drupal framework that manages the display of the content (without hacking the core).
In this case you should be able to find the theme function that display the attachment table using the devel module that ships with a handy addition (devel themer) that let's you select a part of a drupal page and tells you which function to overwrite if you want to change the display.
you can learn more on how to override function in the drupal documentation and following these links:

http://drupal.org/theme-guide
http://drupal.org/node/173880

devel module: http://drupal.org/project/devel

pasqualle’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.