Hi, i am very excited to use your views accordion module. I've installed the module and followed the instructions to set the settings correctly. I don't see the accordion though.. the jquery doesn't appear to be working? Please see the forum topic I posted here for screenshots:

http://drupal.org/node/516320

Thanks so much!!!

Comments

mxer269’s picture

Category: task » support
manuel garcia’s picture

Is javascript active in your browser mxer269?

manuel garcia’s picture

Status: Active » Postponed (maintainer needs more info)
gthing’s picture

I also cannot get the accordion to display. I noticed in the screenshot it shows the view as a block. Will it work in page views also?

Here is a screenshot of my views settings: http://img.skitch.com/20090803-f4qwpr2t1nwb6ehawt76t735x1.png

See any problems?

Thanks.

manuel garcia’s picture

Your view settings look ok gthing... do you see results if using a standard views style plugin, like for example list or table?

manuel garcia’s picture

also, the screenshot also shows the view as a page display, works fine in both displays. you can also embed it it also should work.

gthing’s picture

Status: Postponed (maintainer needs more info) » Active

Yes, table and list both work correctly.

I had jcarousel-ui installed and though it might be causing a conflict but I disabled it and it is still not working. Unfortunately I don't know enough to troubleshoot jcarousel, but I can see the script looks like it is being included and everything, so I'm not sure where the disconnect is.

edit: I tried creating another view from scratch just to test. Tried both page and block view but couldn't get it working. My guess would be that some .js library isn't loading correctly or something, but I don't know how to tell.

edit: Contact me on IRC (sam1am) and I'll give you the URL to the page if you wouldn't mind looking at it.

edit: It appears that some of my files are being served up blank. I have no idea why this might be happening.

gthing’s picture

I changed the theme over to garland just to test and it worked fine. Now I'm really confused :/

Something is wrong with my theme, but who knows what!

Here is a complete copy of my page.tpl.php which is where I think the conflict must be:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language ?>" xml:lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
<head>

  <title><?php print $head_title; ?></title>
  <?php print $head; ?>
  <?php print $styles; ?>
  <?php print $scripts; ?>

	<!-- <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/> -->
<meta http-equiv="content-script-type" content="text/javascript">
</head>
<body>

<div id="container">

	<div id="header">
	
		<div id="headertop">
			<?php print $header_top; ?>
		</div>
		
		<div id="headermain">
			<?php print $header_main; ?>
		</div>
	
	</div>
	
	<div id="navigation">
	
		<ul class="tabs1">
			<li class="nav"><a href="products">Products</a></li>
			<li class="nav nav2_inactive"><a href="quote_generator">Get a quote</a></li>
			<li class="nav nav3_inactive"><a href="quote_generator"><a href="about">About Us</a></li>
		</ul>
	
	</div>
	
	<div id="subnav">
		<?php print $secondary_nav; ?>
		
		<?php if ($secondary_links): ?>
			  <div id="secondary">
			    <?php print theme('links', $secondary_links); ?>
			  </div> <!-- /#secondary -->
		<?php endif; ?>

		<br class="clear" />
	</div>
	
	<div id="main_contain">
	
		<div id="body">
			<?php print $breadcrumb; ?>
			<?php if ($mission): ?>
				<div id="mission">
					<?php print $mission; ?>
				</div>
			<?php endif; ?>

		<div id="content">
			<?php if ($title): ?>
				<h1 class="title"><?php print $title; ?></h1>
			<?php endif; ?>
			<?php if ($tabs): ?>
				<div class="tabs">
					<?php print $tabs; ?>
				</div>
			<?php endif; ?>
			<?php if ($show_messages): print $messages; endif; ?>
			<?php print $help; ?>
			<?php print $content; ?>
</div>
		</div>
	
		<div id="sidebar">
			<div class="quote_bottom_wrap">
			</div>
			
			
			<div class="quote_top">

			</div>
			
			<div class="quote_bottom">
				<?php print $quote_gen; ?>
			</div>
			
			<div class="sidewrapper">
				<div class="sideitem">
					<?php print $right; ?>
				</div>
			</div>
			
		</div>
		
		<br class="clear" />
	
	</div>

	<div id="footer">
		<?php if ($footer_message || $footer) : ?>
			<div id="footer-message">
		    	<?php print $footer_message . $footer;?>
			</div>
		<?php endif; ?>
		
	</div>

</div>

<?php print $closure; ?>
</body>
</html>

Edit: So just for fun I stripped just about everything out of my page.tpl.php except for a basic skeleton and my php print $content statement. Even with the .css gone it still didn't want to work with my theme. I'm missing something apparently.

manuel garcia’s picture

Status: Active » Closed (fixed)

I'm sorry, but I can only support the code that I provide. I cannot give support for custom code.

My suggestion is to use firebug, and see if any of the accordion css is being rewritten by your theme, then remove it and see if that works.

gthing’s picture

I finally fixed it!

I found that there was a views-view-fields.tpl.php file in my theme directory that was re-writing the view fields. I have no idea where this came from as I never added it. Someone else working on the site must have put it in there.

Anyway, once I removed that file and cleared all the caches it came right up and started working.

I'm so glad - this is one of the coolest modules! Thanks a bunch.

I'm closing the issue because there is no response from the original author and my issue is resolved.

mxer269’s picture

Hi, sorry I've been away for a while.

I tried following what you said. I don't see a views-view-fields.tpl.php file. Where was yours located?

Thanks for the help

orlandomenke’s picture

Hi, I actually have a problem in the same direction.

My Views Accordion does work properly, but only in admin->blocks.
If i go to the home page or whatever page i put it on, it wont be visible (the content is visible)

Macronomicus’s picture

Status: Closed (fixed) » Active

probably something to do with not using the old standard jquery? Im using jquery update and this module is producing nothing but the markup .. the js is throwing no errors & never seems to fire it displays all views-accordion-item 's as if they were just a normal view with no accordion functionalities. Firebug & profiler show no errors :( Removing my views-view-fields.tpl.php is not an option since its required to override fields and I have several said tpls. ...besides that cant really be the problem?

manuel garcia’s picture

Status: Active » Closed (fixed)

Guys, don't highjack issues for your own problems. Open a new support request if you need to, including all steps necessary to reproduce your problem.

Macronomicus’s picture

its the same problem .. with the same symptom and its not fixed for me .. no worries though I made my own.