Hi,

I have just switched from the Bartik theme to the Zen theme and my accordion menu does not function in Zen but worked fine in Bartik. I asked the question in the Zen support section (http://drupal.org/node/1105868#comment-5272146) and was told to ask the question here as they have no issues with Java script. Can someone help please?

Comments

solotandem’s picture

Is there a URL to a site with the non-functioning menu?

efc84’s picture

Hi,

No the site is just on the FTP for now, is there anything i can attach that can help you?

solotandem’s picture

How do you access the site to see that the menu is not functioning properly? What URL do you visit?

efc84’s picture

Version: 6.x-1.1 » 7.x-1.x-dev
Status: Postponed (maintainer needs more info) » Active

but not sure if it will let you view it outside of work, its the sidebar first menu.

efc84’s picture

@ solotandem - was you able to figure out what has gone wrong with the accordion menu?

cachorromaligno’s picture

Version: 7.x-1.x-dev » 6.x-1.1

I can confirm this also happens when using 6.x-1.1, accordion_menu works with the standard themes, but it doesn´t like zen derivatives (tested with cti_flex).

I left the menu enabled, is the last block at: http://www.maristas.org.mx/drupal6/

solotandem’s picture

Status: Active » Postponed (maintainer needs more info)

#6: as of today, there is no accordion menu in the source for that URL.

If this is an issue, then someone will need to provide more information. For example, I use this module with the Zen theme on a 7.x site.

andresrodruiz@gmail.com’s picture

Version: 7.x-1.x-dev » 7.x-1.0

I have the same problem with drupal 7

new basic page and added this:

<?php
drupal_add_library('system', 'ui.accordion');
drupal_add_js('jQuery(document).ready(function(){jQuery("#accordion").accordion();});', 'inline');
?>
<div id="accordion">
	<h3>
		<a href="#">section 1</a></h3>
	<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
	<h3>
		<a href="#">Section 2</a></h3>
	<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
	<h3>
		<a href="#">Section 3</a></h3>
	<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>

it work in other themes but no in zen.

my hosting its 1and1 i installed jquery update and jquery plugins

Any solution?
Thanks

andresrodruiz@gmail.com’s picture

Status: Fixed » Active

He solucionado el problema quitando unas lineas de codigo de html.tpl.php

I solved the problem. i delete one line of code of html.tpl.php

Debeis ir a: "sites/all/themes/zen/templates/html.tpl.php"

go to: "sites/all/themes/zen/templates/html.tpl.php"

y comentar la linea en la que importa la libreria jquery desde googleapis
Comment the line that zen use for import the jquery library

Antes:
After

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
    "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" version="XHTML+RDFa 1.0" dir="<?php print $language->dir; ?>"<?php print $rdf_namespaces; ?>>


<head profile="<?php print $grddl_profile; ?>">
  <?php print $head; ?>
  <title><?php print $head_title; ?></title>
  <?php print $styles; ?>
  <link href='http://fonts.googleapis.com/css?family=Tangerine:700' rel='stylesheet' type='text/css' />

  <?php print $scripts; ?>
  <script src='http://sites.google.com/site/pazosblogger/config/pagetemplates/script/bubbleup.jquery.js' type='text/javascript'/>

</script>   

 
  
</head>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js' type='text/javascript'>

</script>

Despues:
before

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
    "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" version="XHTML+RDFa 1.0" dir="<?php print $language->dir; ?>"<?php print $rdf_namespaces; ?>>


<head profile="<?php print $grddl_profile; ?>">
  <?php print $head; ?>
  <title><?php print $head_title; ?></title>
  <?php print $styles; ?>
  <link href='http://fonts.googleapis.com/css?family=Tangerine:700' rel='stylesheet' type='text/css' />

  <?php print $scripts; ?>
  <!--<script src='http://sites.google.com/site/pazosblogger/config/pagetemplates/script/bubbleup.jquery.js' type='text/javascript'/>

</script>        -->   <!-- Esto tambien da error, yo lo he quitado tambien eso ya cada uno --><!-- this line  also give one error-->

 
  
</head>
<!--<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js' type='text/javascript'>

</script>-->                      <!-- ESTA ES LA CAUSA DEL ERROR - DEBE DE HABER UN CONFLICTO --><!-- This is the problem -->

un saludo
regart - Sorry for my english

andresrodruiz@gmail.com’s picture

Title: Accordion Menu and Zen » Accordion Menu and Zen (SOLUCIONADO) (SOLVED)
Status: Active » Fixed

Arriba la solucion

Status: Active » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Link change