Scrollable for drupal pagination...

POVYLAZZZ - June 13, 2009 - 13:38
Project:jQuery plugins
Version:6.x-1.9
Component:Documentation
Category:support request
Priority:normal
Assigned:POVYLAZZZ
Status:active
Description

I want to use Scrollable plug-in for Drupal pagination but I am totally new at jQuery, so where I should put jquery_plugin_add('scrollable'). I know that somewhere in theme files but besides this I have no idea where to put it...
Using Scrollable plugin alone would be great but I remembered that Views module give this "AJAX pagination" feature, so just maybe Scrollable plug-in could be used together with Views AJAX functions?

P.S. Info links provided by Zemanta (Firefox module). Using Zemant Firefox and Drupal module together makes your articles much more informative.

#1

mfb - June 13, 2009 - 16:38

You might want to try Scrollable Views module which takes care of the Views integration for you, so you can just set it up via Views UI. I haven't yet looked at how it supports pagination.

#2

POVYLAZZZ - June 14, 2009 - 11:29

I thing you aren`t getting what I wanted to say.... maybe that because of my English... so, anyway, I do not want that all content of a block or a paged would be seen in Scrollable mode. I want that Scrollable function would be used only fore page navigation, you know, those little numbers in pages footers I want to apply Scrollable function for that navigation.
This time it is really clear. So, still, how to do it?

#3

mfb - June 15, 2009 - 22:48

you could override the theme_pager() function and from there call jquery_plugin_add('scrollable'). In addition you'd need to add a CSS file which would set the styles required by scrollable, and a custom JS file which would set up the scrollable pager behavior i.e. $('selector').scrollable();

#4

POVYLAZZZ - July 4, 2009 - 09:02

It might look a bit stupid but... how to do all that? I mean I know how to add CSS and some other things, but generally I need some hints where should I start for example what files I should look at...
If you think that is not something you should be explaining just tell my that.

 
 

Drupal is a registered trademark of Dries Buytaert.