Posted by alex_b on February 7, 2007 at 10:36pm
We're about to use the $.tabs plug in from stilbuero on a site. I ll write a wrapper module for it - anybody up to the same task?
This is a cooking recepie on how to use $.tabs for blocks:
We're about to use the $.tabs plug in from stilbuero on a site. I ll write a wrapper module for it - anybody up to the same task?
This is a cooking recepie on how to use $.tabs for blocks:
Comments
See the tabs module, part of Javascript Tools
I've included a tabs utility module using the jQuery tabs plugin in Javascript Tools, http://drupal.org/project/jstools.
See the activesearch module for an example of how to implement them in a module.
Approach
The main things I did were:
* Provide theme functions to output an array of tabbed pages. See the tabs.module code for an example. You can navigate to tabs/example to see the example displayed.
* Integrate the tab display with Drupal's menu tabs so that tabs display like the primary local task tabs and correctly switch the 'active' class when a new tab is selected.
There's a fair bit more that could be done.
Please, improve my start.
Thanks for your the detailed
Thanks for your the detailed information, I just downloaded tabs module. I hope I will be able to contribute.
http://www.twitter.com/lxbarth
Is there any particular
Is there any particular reason why the js file is called jquery.tabs.js and not jquery.tabs.pack.js (that's the filename of the latest $.tabs downloadable on http://www.stilbuero.de/2006/11/05/tabs-version-2/)?
If I integrate jquery.history.pack.js should I also rename it to jquery.history.js?
Alex
http://www.twitter.com/lxbarth
That was the name of the file...
...when I downloaded it, evidently it was since renamed. We should go ahead and use the newer one, including its new name, provided it still works with the version of jQuery that ships with Drupal 5. And history would make sense with its new name. History might go straight in the jstools module folder so it can be used by other modules besides tabs, like I did with the cookies plugin.
.pack suffixes
I guess the
.packsuffixes are added to file names because they are the compressed ones, i.e. not the human readable source code.I just uploaded a patch that
I just uploaded a patch that integrates history package and upgrades to the lates $.tabs version. http://drupal.org/node/116975
http://www.twitter.com/lxbarth