I would like to have the link for downloading node attachments appear in the teaser (in addition to the node's body). Currently what I get in the teaser is a link labeled "1 attachment" which links to the node body instead of the actual attachment.

Is there any way to do this so that a link that leads directly to the attachment is automatically created in the teaser?

thanks

Comments

WorldFallz’s picture

you can use the attachment contributed module (which requires the filemanager api module) which has an option for exactly this.

jnamboor’s picture

How do i do the same for Drupal 6? I cant find the module for this version.

seanray’s picture

You can rewrite the node.tpl.php in your theme. Another choice is you can create a node-.tpl.php in your theme if you only want attachment appear for a spcific content type, not all.

Best Drupal Hosting | Affordable Web Hosting | Drupal Tutorials

jnamboor’s picture

I am a newbie, could you help me out by being more specific as to how I am supposed rewrite. What I am wanting is what the attachments show up us in the module download sections of drupal.

derjochenmeyer’s picture

Check out this snippet: http://drupal.org/node/214564

----------------------
okay.cool