Hello, I'm developing http://dev2.northernilskywarn.org/Drupal-7.20 to replace http://www.northernilskywarn.org
See how on the normal site (not the dev) that the image in the middle left flashes with the current "net status?" What I want to do is have a page for users (the role permission of "Net Control Level 1) where they can click a button and have it change that image to one of the following files: white.gif, blue.gif, green.gif, yellow.gif, or red.gif. When they do that, I also want it to trigger an email alert to a group of about 15 to act as an "email alert that we changed conditions."
How would I go about doing this? I want to get the image in the right side bar, BTW.
Thanks for any help!
Comments
Looks like what you need
Looks like what you need requires some custom functionality that would allow the right users to edit the block with the image and replace the image with one from a specific list - if you don't let them upload it from their computer or provide a URL for the image, you'll need to write a custom module for this in which you hardcode the image urls and limit their choices.
As for the emails, the Rules module will get you there. Either by its own, or by using its API in your custom module.
Good luck!
You can follow me on Twitter: @drupalexp or on my blog.
You can do that with the IMCE
You can do that with the IMCE module associated with a wysiwyg editor. It allows you to create directories for images. What you would do is create a directory where you put your 4 or 5 images. Then you allow access to the directory to the role of the users. That way, when they go to edit the block, they can select another image.
To send the email, yes, Rules will do that for you.
Yes, another way. However, if
Yes, another way.
However, if it had been my project and the way I understand things this image is representing the change of a status of some sort (maybe not the best way but nevertheless). So to me for a nicer UX I would make this status change via a select menu or smth rather than uploading and deleting regular images.
Of course, depends on your time and who exactly are going to be the users doing these operations.
You can follow me on Twitter: @drupalexp or on my blog.
Right
Yes, correct. We go into "red" for tornado warnings, yellow for severe thunderstorm warnings, etc; we're storm spotters.
It will be 7 people who will have ability to change the status, some (all but one) who have never even heard of Drupal, so a menu/button/ GUI way will/is best.