Current diaporama module requires dewslider.swf to be placed into files/... directory, but I think that's what standard libraries directories supposed to be for, i.e. sites/all/libraries/, the profiles directory, sites/somesite/libraries/, etc.
This feature also could be usable for multi-site architecture where each website has it's own files directory and placing dewslider.swf into global libraries will make it accessible for all sites at once.
The possible solution attached, it's completely based on wysiwyg module.
You just need to put dewslider into sites/all/libraries/dewslider/dewslider.swf
NOTE
The attached patch has been made against of one you can find in #637478: enable input formats for body field
i.e. it's better to apply diaporama-body_field.patch before trying this one ;)
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| diaporama-dewslider_as_library.patch | 5.33 KB | wik |
Comments
Comment #1
goz commentedIt's right, i noticed this library directory a few weeks ago installing wysiwyg module. I'll check your patch and will put dewslider on libraries directory on next release.
Comment #2
wik commentedAnother option. More simplified and a bit more DRY solution could be done using
libraries_get_path('dewslider');method from libraries project: http://drupal.org/project/librariesComment #3
wik commented