Commit 484c080b authored by frjo's avatar frjo
Browse files

#677494: Updated the README with information about opening forms in Colorbox via special links etc.

parent 09fb82e9
......@@ -15,7 +15,8 @@ The jQuery library is a part of Drupal since version 5+.
Integrates with Image, Imagefield and Imagecache modules.
Provides a feature to display the login form in a Colorbox and a simple API to display any form in a Colorbox.
Provides a feature to display the login form in a Colorbox and a
simple API to display any form in a Colorbox.
* jQuery - http://jquery.com/
* Colorbox - http://colorpowered.com/colorbox/
......@@ -23,12 +24,14 @@ Provides a feature to display the login form in a Colorbox and a simple API to d
Drush:
------
A Drush command is provides for easy installation of the Colorbox script itself.
A Drush command is provides for easy installation of the Colorbox
script itself.
% drush colorbox-script
The command will download the script and unpack it in sites/all/libraries. It is
possible to add another path as an option to the command, but not recommended unless you know what you are doing.
The command will download the script and unpack it in sites/all/libraries.
It is possible to add another path as an option to the command, but not
recommended unless you know what you are doing.
Installation:
......@@ -47,6 +50,29 @@ Go to "Administer" -> "Site configuration" -> "Colorbox" to find
all the configuration options.
Opening any form in a Colorbox:
------------------------------
Check the "Enable Colorbox forms" option in Colorbox settings.
The links to open a form needs the class "colorbox-from". The URL should look like this.
"/colorbox/form/[form_id]?width=[with_in_pixel]&height=[height_in_pixel]".
Here is an example where the user register form is opened in an
500 by 250 pixel Colorbox.
<a class="colorbox-form" href="/colorbox/form/user_register?width=500&height=250">Create new account</a>
Example styles borders do not display in Internet Explorer:
----------------------------------------------------------
If you use one of the example styles and have problems with the border
images not loading in Internet Explorer please read
http://colorpowered.com/colorbox/#help_paths.
The default style in Colorbox module does not have this problem.
Contributions:
-------------
* Porting all features from the Thickbox module,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment