Upload Module Customisation

Posts: 10
Joined: 05/03/2008

Hi,

I'm trying to change the output of the Upload Module on products.

I have set it up so that product data sheets can be uploaded and attached to products.

The problem is that the standard default terminology of: "Attachment" needs to be more descriptive. I would like to change it to read: "Download Product Data Sheet", or something like that.

Could anyone please point me in the right direction? Searches on drupal.org, google and here at ubercart have not helped.

Thanks.

--

“I cannot give you the formula for success, but I can give you the formula for failure – which is: Try to please everybody.” - Journalist Herbert Bayard Swope

Posts: 542
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

ubernewbie wrote:
Hi,

I'm trying to change the output of the Upload Module on products.

I have set it up so that product data sheets can be uploaded and attached to products.

The problem is that the standard default terminology of: "Attachment" needs to be more descriptive. I would like to change it to read: "Download Product Data Sheet", or something like that.

Could anyone please point me in the right direction? Searches on drupal.org, google and here at ubercart have not helped.

Thanks.

Overriding theme_upload_attachments() lets you customize the output of the upload module.

--

<tr>.

Posts: 3227
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

This is a slight change of direction, but may I also recommend the FileField module? It lets you use CCK to add a file upload field to a node, and it gives you some finer grained settings and display control. With that you should be able to change the label, positioning, and styling easier.

Only drawback is it comes with a bit of overhead and can seem like quite a bit just to add one file field to a node. Sticking out tongue

Posts: 10
Joined: 05/03/2008

Many thanks for this guys. I've been away from the computer, so the late response. I will give them both a try and let you know how it goes.

--

“I cannot give you the formula for success, but I can give you the formula for failure – which is: Try to please everybody.” - Journalist Herbert Bayard Swope

Posts: 10
Joined: 05/03/2008

Just found this excellent tutorial which has helped a lot:
http://agaricdesign.com/note/theming-file-attachments-drupal-5x

--

“I cannot give you the formula for success, but I can give you the formula for failure – which is: Try to please everybody.” - Journalist Herbert Bayard Swope