Are you planning to produce a Drupal 7 version of the module?

Comments

Jason Dean’s picture

Would love this in D7 - subscribing!

mgifford’s picture

Some of the jQuery functions have more accessible versions here which should be considered:
http://hanshillen.github.com/aegisdemo/

Also would be great to have a list of similar modules.

lukus’s picture

I'm going to try to convert this module to Drupal 7. Will post back with results.

vegardjo’s picture

+1 sub

lukus’s picture

I think Drupal 7's 'libraries' features might have made this module obsolete.

JavaScript Libraries

There is now a standard way of adding collections of JavaScript and CSS, such as jQuery plugins. If you have a set of JavaScript and/or CSS that could be considered a package, provide it as a library to other modules by implementing hook_library(), and include it it in your own pages either by using #attached['library'] or drupal_add_library(). This is the preferred way to deal with JavaScript and CSS which might be used by other modules.

Info from http://drupal.org/node/756722

Pocketpain’s picture

sub

barnettech’s picture

I couldn't figure out how to add the jquery tools library using drupal_add_library did anyone else?

I did figure out how to use the built in jquery ui library which did the trick for me: I just added drupal_add_library('system', 'ui.dialog'); to my template.php (or maybe I'll add it to a .tpl file). Then I could make use of the dialog library: http://jqueryui.com/demos/dialog/

Anyhow do you have to download the jquery tools module and then wrap all the jquery with a no conflict line or something? I know when I write my own jquery I have wrap it in: (function($){ });

If you want to use something other than dialog from the jquery ui library you can use change the line I listed above to just use the other options ie: accordion, tabs, etc.

digibritt’s picture

When will this be available for Drupal 7? We need it bad!

digibritt’s picture

Did you have any luck, Lukus?

ouebDC’s picture

sub too. please, I need it bad too. the sooner the better !! thank you so much.

ouebDC’s picture

thanks to this man, I could add my jquery tools in time :
http://torylawson.com/index.php?title=JScrollPane_and_Drupal_7

notice this : Parse Error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in .../template.php on line #
This happens when you use the code from Kelvin's site in template.php, because Kelvin's code uses single quotes around the selector and template.php wants double quotes. Use double quotes instead and you should be in business.

so I replaced my simple quotes by double ones and it works.

my code become :

function mytheme_preprocess_page(&$variables) {
  drupal_add_js('misc/jquery.tools.min.js');  // link the js
  $jquerytools_js = '
    jQuery(document).ready(function() { 
      jQuery("#accordion").tabs("#accordion li",
							{
							tabs: ".rubrique", 
							effect: "horizontal"
							}
);
    });';
  drupal_add_js($jquerytools_js, 'inline');
  $vars['scripts'] = drupal_get_js($data = NULL, $options = NULL);
}

hope it will help some of you as much as it helped me, while waiting the module.

lukus’s picture

Hi

I've started fleshing out a new module for D7 - it's not exactly the same as this one, it allows you to add the library using the drupal_add_library() function.

It also allows you to add content to tabs and sliders using HOOK_theme:

Details here: http://drupal.org/sandbox/lukus/1214382

I'm trying to get it converted into a module .. but I've been advised that it should maybe be a patch or release for this module: http://drupal.org/node/1228924

Have emailed the dev. for this module, and will post back details here once I receive a response.

ouebDC’s picture

can you help me ? I'm close to obtain an autoplay horizontal accordion banner but since I added .slideshow() parameters nothing works anymore :
before, working : the script above.

not working : the following script :

 // ajouter les parametres de jquery tools pour la banniere accordéon > template.php 
  drupal_add_js('misc/jquery.tools.min.js'); //lier le js
  $jquerytools_js = '
 jQuery(document).ready(function() { 
      ("#accordion-img").tabs("#accordion-img li", {
	tabs: ".rubrique-img", 
	effect: "horizontal",
	
	rotate : true
}).slideshow({
	autoplay: true 
			}
);
	});';
  drupal_add_js($jquerytools_js, 'inline');
  $vars['scripts'] = drupal_get_js($data = NULL, $options = NULL);
}

please, can you help ?
thank you.

(classes have changed but that's not the problem)

/* review*/
I had forgotten a "$" before ("#accordion-img"). as I replaced "$" by "jQuery" the code is :

  $jquerytools_js = '
 jQuery(document).ready(function() { 
      jQuery("#accordion-img").tabs("#accordion-img li", {
	tabs: ".rubrique-img", 
	effect: "horizontal",
	
	rotate : true
}).slideshow({
	autoplay: true 
			}
);
	});';

Another issue has appeared : there's a conflict between superfish menu module and jquery tools.
In my case, I have solved my bug by only adding the tools I need which are tabs and slideshow and fortunately the conflict has disappeared.
but I keep in mind there's a conflict else where.

ouebDC’s picture

example here : http://drupal7.travaillerdormir.com/content/jquery-tools-tabs-banner
animation issue :
Does someone know how to constrain remaining items to keep on sticking in place while the first one is sliding ? (the effect is ok out of drupal)

I would be so grateful if someone could answer me.

rickmanelius’s picture

Subscribe

bluestarstudios’s picture

Hey lukus, any news on when we can see a release of your module? I would love to finally use jQuery Tools in D7. Thanks!

joecanti’s picture

Hi,

I've had some success by simply putting the jquery tools js file in the header (using html.tpl.php) and then calling the script throughout the page.

The problem is that it stops the js on view from working. Anybody come across this?

Joe