I would like to use Lightbox to display or open attachments (files and images) that are attached to forum posts, comments and nodes(content types). Just the standard Drupal attachments such as the ones used here on Drupal.org.
I did get extlink to open them in a new window, but lightbox is so cool,, I just think it would be so much better and more professional.
I did read the issue que here and have seen a similar request, but it was for all images.. I have read the documentation, but it's a little over my head and there are so many settings I am a little lost, so now I am bothering people with my request.
Thank you very much for help that you can provide.. I will use the answers to help others in the future..

Comments

bledari’s picture

subscribing

mecano’s picture

add 'rel' => 'lightbox' to $options['attributes'] in node-contentype.tpl.php then print theme('upload_attachments',$node->files)

W.M.’s picture

@mecano

Does the solution you have suggested work also when using views, "lightvideo" rel call and CCK filefields ?!

Any information is highly welcomed. Thanks!

mecano’s picture

sure, I have the following suggestion especially for you :
WHY DON'T YOU TRY YOURSELF? (after all we are not talking about ninja sharp weapons throwing techniques or typing 1000 lines of code, chicken).

W.M.’s picture

@mecano

:-)

I will give it a try. It is only one thing of several things I want to improve at one of my sites these days.

There is something that discourages me thought, please look at this issue:

http://drupal.org/node/1039210

I am not sure, it looks like Fusion core / Acquia Marina do not allow the use of node-(contenttype).tpl.php settings. It is like they are blind to those custom files.

mecano’s picture

I'd say, if they are blind avoid them, see what I mean?

P.-S. http://drupal.org/node/1039210#comment-3999124