By pixelz on
Hi,
I've read some really fantastic posts about theming the attachment table provided by File Upload. However, I have a client who specifically wants the attachments block to appear at the top of the page (above the page content) and I can't seem to find a way to do this. It seems to default to display at the bottom of the page and I can't find anything in node.tpl.php or similar where it's included.
Have been playing with the theme_upload_attachments() function, but that doesn't seem to have anything to do with where on the page it's displayed...
little help?? :)
Comments
hook_nodeapi
The upload module sets the weight of the attachment table to 50 so that it appears below the node body. You'll have to jockey with the weights to get what you want. But by the time any template gets the node, the body content is already rendered, so you have to do it in a module using hook_nodeapi. Something like:
This is a mighty simplified example with no error checking and no provisions for other content elements, but you get the idea.
Ah - i see. Thanks will give
Ah - i see. Thanks will give it a go!