By paddy_deburca on
Here is a scriptaculous module that implements many of the visual effects available on http://script.aculo.us/
Installation
- unpack the contents to your modules directory
- copy the template.php file to your theme directory - please be careful and not replace willy-nilly existing template.php files
- if you want blocks to have special effects, use the block.tpl.php template provided as an example
- if you want nodes to have special effects, use the node.tpl.php template provided as an example
When fully enabled
- a prototype.js framework library is loaded
- the Script.aculo.us scripts are loaded
- if you replace the standard collapsible settings, a different collapse.js file is loaded instead of the standard collapse.js
- a style.css is provided to un-hide collapsed blocks as these are now giverned by the script.aculo.us functions
Just visit http://amadain.net/ and click on some box headings and see what happens..
Comments
Contribute As A Project
Thanks for the contribution, have you thought about maintaining a project on drupal.org?
The easy answer to your question is - yes
But before I start a new project - I want to get some feed-back. It seems that the S/P Ajax module already does all the script.aculo.us stuff.
Rather than start a new project, I may contribute what I have done to that project. It seems that I need to do some researching..
Paddy.
http://deburca.org, and http://amadain.net
Paddy.
http://deburca.org
S/P Ajax
There is already a Script.aculo.us/Prototype project in the repository. It is called S/P Ajax and it attempts to make all of the Scriptaculous effects available to themes and modules through a PHP API. It also handles a bunch of stuff like making sure that Scriptaculous is installed correctly, placing all of the JavaScript in the html head, etc. It also has functions for a "sortable" form element, automatic effects on Drupal messages, and Prototype-based AJAX callbacks to the server. Also, it doesn't require any modification to most Drupal themes. For the REAL fun stuff, check out S/P Magic Menus which creates some slick (although currently not very IE-friendly) dynamic expandable menu blocks - see the demo.
Perhaps the work you have done could be integrated into the S/P Ajax project.
--= Jeff Robbins | www.lullabot.com =--
I did not know that - I'll check S/P Ajax out
I did not know that - I'll check S/P Ajax out and see if I can add anything new.
Thanks for the pointer.
Paddy.
http://deburca.org, and http://amadain.net
Paddy.
http://deburca.org