Hi,
I posted this question a few days ago in the Post Installation forum a few days ago, but this is probably a better place.
I am trying to recreate some functionality as available on some imagehosts. I have a content type called picture. Among the title and description, it contains a CCK imagefield with 1 picture (field_picture). What I currently have is a Views generated view that contains a checkbox for each picture node through Views Bulk Operations (BVO). What I would like to do is bulk-generate image link codes for selected nodes. For example:
Thumbnails
[url=http://www.example.com/files/imageB.jpg][img]http://www.example.com/files/t_imageB.jpg[/img][/url]
[url=http://www.example.com/files/imageH.jpg][img]http://www.example.com/files/t_imageH.jpg[/img][/url]
[url=http://www.example.com/files/imageR.jpg][img]http://www.example.com/files/t_imageR.jpg[/img][/url]
Full size
[img]http://www.example.com/files/imageB.jpg[/img]
[img]http://www.example.com/files/imageH.jpg[/img]
[img]http://www.example.com/files/imageR.jpg[/img]
I would like to write a function that generates these codes and displays them on a new page, preferably each type of link in a different textarea. This page should not be saved, but is only used to display the constructed links. Originally, I wanted to write an action to use by BVO, but futher reading learned that actions process one node at a time. As I wanted to group the results of several nodes, I figured a module invoking hook_node_operations was the better way to go.
I have started writing a module to do what I want. I currently have a very, very crude proof of concept that can generate the BBCodes that I want. However, I am currently displaying the results in a drupal_set_message() call, because I have not yet figured out how to generate that on the fly results page. Something I would very much like to implement.
Any tips and nudges in the right direction on how to do this would be most welcome.
Comments
Bumping this one because I
Bumping this one because I am still very much in need of an answer to this question. Thanks!
Nobody? Is the question
Nobody? Is the question unclear and needs further explanation? Is it a dumb question? Or is it just not possible?