Hi,
I have setup the module and setup the view using view accordion style and also added the field with title and some cck fields, but when it is displayed in a page, the accordion is not working at all it is not wrapping the field after the 1st field it the structure become like this :
<div id="views-accordion-testimonials_overview-page_1">
<div class="views-accordion-item accordion-item-0 accordion-item-odd accordion-item-first">
<span class="title">test</span>
<div class="created">Thursday, October 6, 2011 - 10:17pm</div>
<div class="body"><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam cursus. Morbi ut mi. Nullam enim leo, egestas id, condimentum at, laoreet mattis, massa. Sed eleifend nonummy diam. Praesent mauris ante, elementum et, bibendum at, posuere sit amet, nibh. Duis tincidunt lectus quis dui viverra vestibulum. Suspendisse vulputate aliquam dui. Nulla elementum dui ut augue.</p></div>
<div class="field-testimonial-name-value">test</div>
<div class="field-city-state-value">tes</div>
<!--/views-view-fields.tpl.php -->
</div>
<div class="views-accordion-item accordion-item-1 accordion-item-even accordion-item-last">
<span class="title">test</span>
<div class="created">Thursday, October 6, 2011 - 10:17pm</div>
<div class="body"><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam cursus. Morbi ut mi. Nullam enim leo, egestas id, condimentum at, laoreet mattis, massa. Sed eleifend nonummy diam. Praesent mauris ante, elementum et, bibendum at, posuere sit amet, nibh. Duis tincidunt lectus quis dui viverra vestibulum. Suspendisse vulputate aliquam dui. Nulla elementum dui ut augue.</p></div>
<div class="field-testimonial-name-value">test</div>
<div class="field-city-state-value">tes</div>
<!--/views-view-fields.tpl.php -->
</div>
</div>
I tried copying the tpl into the templates into the theme folder and still not working. checking the JS and no error too, can someone help me out please, thank you
Comments
Comment #1
escoles commentedSeeing the same behavior.
Comment #2
manuel garcia commentedIs JS runing properly on that page? (check in firebug js console if anything comes up)
Comment #3
escoles commentedAs with original poster, not seeing any errors in the firebug console. Other jQuery-enabled features working fine.
Comment #4
manuel garcia commentedcan you provide the view export code?
Comment #5
escoles commentedHere's my view export code (assuming this is what you meant):
Comment #6
vvs commentedNot working too... On the page and block views.
First install.
Standard .tpl.php
No errors in Firebug console.
Views:
Comment #7
mbuhmann commentedI'm having a similar issue, this occurred when my host upgraded PHP from 5.2.6 to 5.2.17. Views Accordian working fine before, then not working. No javascript errors and other JQuery features working.
Comment #8
escoles commentedFWIW, I've found other jquery-enabled contrib modules that don't work properly, e.g. Draggable Views. Have not debugged that failure for errors yet, but it's possible they're related.
Comment #9
mbuhmann commentedFound that turning off "Optimize and Minify JavaScript files" in Site Configuration/Performance got it back up and working. Now I have to find another way to compress javascript on site.
Comment #10
boby_ui commentedworking as designed my bad
Comment #11
spgd01 commentedThis should not be "as designed" If optimize JavaScript files is checked under settings>performance then Views accordion does not work.
Comment #12
manuel garcia commented@spgd01: Two things,
Comment #13
Katrina B commentedPlease note that this is a Drupal 6 problem. Yes, Views Accordion works correctly in D7; however, it is not working correctly in D6. In fact, I have JS Optimize disabled on my D6 site -- and Views Accordion is still not working.
Comment #14
manuel garcia commentedClosing now due to 6.x no longer supported.