Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have placed the list of files in the body of the node, so the title 'attachment' is out of place here (I use the attachment list to display list of relevant documents as an alternative to webfm_views which is not ready yet for D-6)
thanks very much
Comments
Comment #1
paulrooney CreditAttribution: paulrooney commentedOne approach would be to hide the THEAD for the "webfm-attach-list" TABLE via CSS. Doesn't actually get rid of the label, but does hide it.
Comment #2
attiks CreditAttribution: attiks commentedYou can also use the template override system, add function phptemplate_webfm_attachments($files) inside your template.php files and remove whatever you don't need.
Comment #3
lilon CreditAttribution: lilon commentedThanks very much to both. As I am a complete novice in php/Drupal (and cssing Drupal) I would very much appreciate if someone could lend a hand with accomplishing one of these two seemingly insurmountable tasks.
I've worked out (for the second option) that I need to create a theme folder under 'sites/all' and drop in there a copy of a php file called template.php. Then I have to copy the function which renders the html 'Attachment', paste it into the file with a php_template_ prefix to its name (possibly replacing the existing prefix???) and omit the part of the function that prints the word 'attachment (
print t('Attachment');
???)Is this how I do it???
Where do I find this function and how do I tell drupal to override it? do I have to drop anything else into the theme folder other than template.php ? (I read somewhere that you do)
Please help
thanks
Comment #4
attiks CreditAttribution: attiks commented@lilon: you have to change the template.php file of your current theme, if you're using garland you're better of installing a new theme inside /sites/all/themes and changing that template.php.
Have a look at http://drupal.org/node/176045 for more information
Comment #5
nhck CreditAttribution: nhck commented