README.txt in Widgets 6
// --------------------------------------------------------
// Prerequisites
Widgets depends on the modules jquery_update and jquery_ui. The current version
of jquery_ui, 6.x.1.3, ships with jQuery UI version 1.6. The jQuery Multiselect
widget requires jQuery UI version 1.7. Follow the directions to upgraded jQuery UI
to version 1.7 in the README.txt of the jquery_ui module.
Also, the module depends on jQuery version 1.3.x. The version of jquery_update you
should use is currently 6.x.2.x-DEV.
// --------------------------------------------------------
// Installation
1. Download Widgets module to your modules directory, usually
sites/all/modules
2. Download jQuery Multiselect from <http://github.com/michael/multiselect/>
While developing this module version 0.3 of jQuery Multiselect was used,
but later releases should work as well.
3. Place the multiselect folder in the js folder of the widgets module,
sites/all/modules/widgets/js/multiselect. The name of the unpacked multiselect
folder downloaded in previous step may vary, for example the package I downloaded
was named "michael-multiselect-6460fe9". Make sure you name the folder
"multiselect" and place in the the js folder of the Widgets module. The full
path to the script should be "sites/all/modules/widgets/js/multiselect/ui.multiselect.js".
4. Activate module at "Administer > Modules"
5. Go to "Administer > Site building > Blocks" and place the new block "Widgets"
in a region of your choice.
// --------------------------------------------------------
// Usage
* First go to "Administer > Site Settings > Widgets" and select the
content type(s) you want available as widgets.
* Enable widgets for a content type by going to "Content > Content types"
and for each type you want to enable widgets for click "Widgets" tab
on content type settings page and choose to enable widgets.
* Create a widget by creating a new node of the type(s) you marked
as widget types.
* Create a new node of a type you activated widget support for. A new
set of form elements should appear on the node form. Select the
widgets you want for the page and click save.
// --------------------------------------------------------
// Troubleshooting
Q: The "Widgets" tab doesn't appear on the content type settings page after the
module has been installed.
A: Clear the cache at "Adminster > Site Settings > Performance".
// --------------------------------------------------------
// History
2009-Nov-20 - 6.x-1.0-BETA2
Added missing files and clarified installation instructions.
2009-Nov-18 - 6.x-1.0-BETA1
First release.
// --------------------------------------------------------
// Credits
Widgets developed and maintained by Peter Törnstrand <http://drupal.org/user/293786>
Project sponsored by Happiness <http://www.happiness.se/>
File
README.txt
View source
-
- // --------------------------------------------------------
- // Prerequisites
-
- Widgets depends on the modules jquery_update and jquery_ui. The current version
- of jquery_ui, 6.x.1.3, ships with jQuery UI version 1.6. The jQuery Multiselect
- widget requires jQuery UI version 1.7. Follow the directions to upgraded jQuery UI
- to version 1.7 in the README.txt of the jquery_ui module.
-
- Also, the module depends on jQuery version 1.3.x. The version of jquery_update you
- should use is currently 6.x.2.x-DEV.
-
- // --------------------------------------------------------
- // Installation
-
- 1. Download Widgets module to your modules directory, usually
- sites/all/modules
-
- 2. Download jQuery Multiselect from
- While developing this module version 0.3 of jQuery Multiselect was used,
- but later releases should work as well.
-
- 3. Place the multiselect folder in the js folder of the widgets module,
- sites/all/modules/widgets/js/multiselect. The name of the unpacked multiselect
- folder downloaded in previous step may vary, for example the package I downloaded
- was named "michael-multiselect-6460fe9". Make sure you name the folder
- "multiselect" and place in the the js folder of the Widgets module. The full
- path to the script should be "sites/all/modules/widgets/js/multiselect/ui.multiselect.js".
-
- 4. Activate module at "Administer > Modules"
-
- 5. Go to "Administer > Site building > Blocks" and place the new block "Widgets"
- in a region of your choice.
-
- // --------------------------------------------------------
- // Usage
-
- * First go to "Administer > Site Settings > Widgets" and select the
- content type(s) you want available as widgets.
-
- * Enable widgets for a content type by going to "Content > Content types"
- and for each type you want to enable widgets for click "Widgets" tab
- on content type settings page and choose to enable widgets.
-
- * Create a widget by creating a new node of the type(s) you marked
- as widget types.
-
- * Create a new node of a type you activated widget support for. A new
- set of form elements should appear on the node form. Select the
- widgets you want for the page and click save.
-
-
- // --------------------------------------------------------
- // Troubleshooting
-
- Q: The "Widgets" tab doesn't appear on the content type settings page after the
- module has been installed.
- A: Clear the cache at "Adminster > Site Settings > Performance".
-
- // --------------------------------------------------------
- // History
-
- 2009-Nov-20 - 6.x-1.0-BETA2
- Added missing files and clarified installation instructions.
-
- 2009-Nov-18 - 6.x-1.0-BETA1
- First release.
-
- // --------------------------------------------------------
- // Credits
-
- Widgets developed and maintained by Peter Törnstrand
- Project sponsored by Happiness