Mercurial > defr > drupal > popups
comparison README.txt @ 1:4215c43e74eb
Popups: Mise à jour en version alpha6
| author | Franck Deroche <franck@defr.org> |
|---|---|
| date | Fri, 31 Dec 2010 13:44:00 +0100 |
| parents | 76f9b43738f2 |
| children |
comparison
equal
deleted
inserted
replaced
| 0:76f9b43738f2 | 1:4215c43e74eb |
|---|---|
| 15 and then complain on the issue queue for the theme. It is important that there are no other | 15 and then complain on the issue queue for the theme. It is important that there are no other |
| 16 print statements inside the div. | 16 print statements inside the div. |
| 17 | 17 |
| 18 LIMITATIONS | 18 LIMITATIONS |
| 19 ------------------------------------------------------------------------------------ | 19 ------------------------------------------------------------------------------------ |
| 20 Is this still true? Does not work with tinymce. Unlikely to work with other WYSIWYG's. | 20 Does not work with tinymce. Unlikely to work with other WYSIWYG's. (Is this still true?) |
| 21 Conflicts with: | |
| 22 Devel Theme Developer module. | |
| 21 | 23 |
| 22 HOW TO USE THE POPUPS API | 24 HOW TO USE THE POPUPS API |
| 23 ------------------------------------------------------------------------------------ | 25 ------------------------------------------------------------------------------------ |
| 24 If you just want to use the built in admin links, just enable the Popups: Admin Links | 26 If you just want to use the built in admin links, just enable the Popups: Admin Links |
| 25 module and you are good to go. | 27 module and you are good to go. |
| 32 <a href="popups/test/response" id="mylink"> | 34 <a href="popups/test/response" id="mylink"> |
| 33 <a href="popups/test/response" id="mylink2"> | 35 <a href="popups/test/response" id="mylink2"> |
| 34 | 36 |
| 35 // In your module | 37 // In your module |
| 36 popups_add_popups(array('#mylink', '#mylink2=>array('width'=>'200px'))); | 38 popups_add_popups(array('#mylink', '#mylink2=>array('width'=>'200px'))); |
| 37 IMPORTANT: You can only put popups_add_popups in module, NOT in a .tpl file | |
| 38 or the template.php file. | |
| 39 This is the simplest method if you want to pass in per-link options. | 39 This is the simplest method if you want to pass in per-link options. |
| 40 The first key is a jQuery selector. It should select an 'a' element (unless you | 40 The first key is a jQuery selector. It should select an 'a' element (unless you |
| 41 are using the 'href' option). See http://docs.jquery.com/Selectors to learn more | 41 are using the 'href' option). See http://docs.jquery.com/Selectors to learn more |
| 42 about jQuery selectors. | 42 about jQuery selectors. |
| 43 The array is a set of Options. See below for the list of options. | 43 The array is a set of Options. See below for the list of options. |
