I cannot get views accordion working. I have tried the following after installing and enabling the module:

- setting row style to fields
- providing 5 fields
- using the module's default styling
- disabling the modules default styling
- using a default view that comes with Views
- starting a new view from scratch
- view style = Views Accordion
- when I click on Theme:Information in the view it displays the following:

Display output: views-view.tpl.php, views-view--taxonomy-term.tpl.php, views-view--default.tpl.php, views-view--page.tpl.php, views-view--taxonomy-term--page.tpl.php
Style output: views-view-accordion.tpl.php, views-view-accordion--taxonomy-term.tpl.php, views-view-accordion--default.tpl.php, views-view-accordion--page.tpl.php, views-view-accordion--taxonomy-term--page.tpl.php
Row style output: views-view-fields.tpl.php, views-view-fields--taxonomy-term.tpl.php, views-view-fields--default.tpl.php, views-view-fields--page.tpl.php, views-view-fields--taxonomy-term--page.tpl.php

- I have tried different themes, including Garland (all with the same result)
- I have cleared the cache
- style: Table works as does Grid and HTML list

The live preview seems to default to the "Unformatted" style whenever I choose "Views Accordion".

What I don't understand (I will be teaching myself some of this in the near future) is how the theme information says the style output is:

Style output: views-view-accordion.tpl.php

and yet there is no change to the live preview.

If anyone has any insights as to how I might get this working, I would very much appreciate it.

I'm not sure what to try from here.

I have attached a screen shot of my view setup.

Thanks.

bdika

CommentFileSizeAuthor
bdika_views_accordion.png150.15 KBbdika

Comments

manuel garcia’s picture

The accordion doesn't show on preview, only when being displayed normaly.

bdika’s picture

Thank you Manuel. As you can probably tell, I am very new to Drupal.

Thanks again.

bdika

manuel garcia’s picture

Status: Active » Closed (fixed)

Not a problem bdika, welcome aboard!

oneEcho’s picture

Title: Views Accordion 6.x-1.4, Views 6.x-2.12, Drupal 6.22 - Views Accordion not working » Views Accordion not working
Version: 6.x-1.4 » 7.x-1.x-dev
Assigned: Unassigned » oneEcho
Status: Closed (fixed) » Active
Issue tags: +views accordion, +drupal 7, +associate to multiple taxonomy terms, +#views

Hi I've installed the views accordion module to display a list of cocktails using taxonomy and it's not working for me.

My taxonomy looks like this

Drinks
Classics
Drink 1 & ingredients
Drink 2 & ingredients
...more
Signatures
Drink 1 & ingredients
Drink 2 & ingredients
...more

I want the accordion to display 2 clickable options classics and signatures and when clicking on any of the 2, it will display a list of drinks.

What I get is classics, drink 1, drink 2, signatures, drink 1, drink 2 all as clickable options. I've also tried creating an accordion without using my taxonomy list and I can't manually create one.

Can someone point me in the right direction and tell me what I'm doing wrong please.

jaesperanza’s picture

Still an issue for some themes, posting in case it will help anyone.

In most cases this is due to conflicts with other jQuery scripts being used by the themes, or in some cases other modules. To troubleshoot:

  1. Use web developer toolbar browser extension (Use Firefox or Chrome for this)
  2. Navigate to page where accordion is placed
  3. Information > View Javascript - this shows a list of all JS installed and location used on the site and page
  4. Try temporarily renaming JS files until you identify which one/s are conflicting with accordion JS
  5. Address issue as needed (updating versions, safely disabling unnecessary ones, etc.)

Hope this helps!

manuel garcia’s picture

Version: 7.x-1.x-dev » 6.x-1.4
Assigned: oneEcho » Unassigned
Status: Active » Closed (outdated)
Issue tags: -views accordion, -drupal 7, -associate to multiple taxonomy terms, -#views

Thanks @jaesperanza for the troubleshooting steps.

@oneEcho Please open a new issue rather than hijack a closed and unrelated one. I'm closing this as it is very old, and was reopened for an unrelated support request.