See my implementation of the Views Accordion here (left sidebar):

http://sites.fcps.org/testad/

Notice that I have scrolling on via CSS in the content area. Is it possible to swap in image icons (arrows) that cause the scrolling to happen (via a jQuery method) vs. having the scroll bar?

Do you have any suggestions for this?

Thanks in advance.

-backdrifting

Comments

manuel garcia’s picture

Category: feature » support
Priority: Critical » Normal
Status: Active » Closed (works as designed)

First of all, don't ever edit contributed modules' files, for these will get overwritten when you upgrade to the next version (applies to any module). I see there you are editing the module's css file. This is not needed. Just use your own style.css in your own theme for this (copy garland folder to /sites/all/themes if that's what you plan on using). Your theme's css styling will override any module's styling, including this one :) You can also switch off the module's css file in the options of your view if you'd like.

About the jQuery scrollbars, this is not a feature that the module provides, jQuery scrollbars would mean another plugin. Fortunately, the community already has a module that implements this plug-in, you can find it here:
http://drupal.org/project/jscrollpane

ambientdrup’s picture

Thanks! Yes, don't worry - I will make my final CSS changes to the main theme style.css (or the like). I'm aware that it's not best practice to make changes to a contrib module core file. I understand that. This was purely in a "testing" sandbox environment.

Thanks for the scroll module suggestion. I'll take a look at that.

-backdrifting

ambientdrup’s picture

Looks like there are some problems with that Drupal jscrollpane module. See this post:

http://drupal.org/node/227168

Have these issues been addressed by the module developer?

-backdrifting

manuel garcia’s picture

I don't know backdrifting, i think you should ask in there ;)

I remember using that module a while back, not sure what the status is now with it. It's a simple module, all it does is give a function to include the plugin on your site so that you can then create your js file that creates the scroll bars using it. I suggest you read the plugin's documentation as well.

colorado’s picture

Put this in your style.css

.accordion-content {
height: 400px;
overflow-y: scroll;
}