I can't seem to get views accordion to work. On the views page, the accordion displays and works perfectly but it doesn't work in either a block or in a page. I have other jQuery plugins such as nivo slider working and other jQuery plugins but for some reason this one doesn't seem to work. It just displays the title and the body text. I'm not sure exactly what i'm doing wrong but any help would be greatly appreciated.

Comments

CoolClick’s picture

Im having the same issue. what theme are you using?

JrodR87’s picture

The mothership theme

CoolClick’s picture

I'm using mojo another responsive theme. My guess is something in these themes are messing with it.

JrodR87’s picture

It is, I switched over to another theme and it works perfectly there. It at least narrows it down.

JrodR87’s picture

I figured it out with the help of this link. It's the views-view.tpl.php file that causes the issue.

http://drupal.org/node/782712

CoolClick’s picture

JrodR87 you are a rock star. Great job finding that. It works for me as well.

JrodR87’s picture

Glad to hear!

dianacastillo’s picture

I copied the views-view.tpl.php into the template directory of my theme, still doesnt work. I tried switchin to other themes that are not adaptive theme, doesnt work at all anywhere.
It doesnt work for me within views either. I only see the first field and when I click on it nothing happens.

JrodR87’s picture

StatusFileSize
new32.77 KB

It doesn't sound like a tpl file issue but something is just not configured correctly. In the Views, are you selecting the Format to be the Views accordion? How do you have it setup right now?

dianacastillo’s picture

Hi, its not the setup because I made a clean install of drupal and did the same setup and it works there. so it means it has to be conflicting with some other module. how do I find out which module is causing the conflict?

JrodR87’s picture

You could compare what modules you have setup in the clean install vs your current install.

What version of the accordion view are you using? I'm using 7.x-1.0-rc2.

Sorry for the delayed response by the way. I thought I wrote back the other day.

dianacastillo’s picture

StatusFileSize
new5.26 KB

I have so many modules that it was too hard to figure out. I solved it by hand coding using the attached html template

JrodR87’s picture

Status: Active » Closed (fixed)