Download & Extend

Menu items h2 instead of li

Project:Accordion Menu
Version:7.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I'm probably doing something wrong, but when I attempt to create accordion menus using the standard navigation, management, user, and/or devel menus, accordion menu treats each of the menu items as if it were an h2 element with no child elements rather than an li element. When I render the menu using Drupal's standard menus, the menu items are rendered correctly. I've got Menu Block enabled, and it appears to be configured correctly. Ditto for Accordion Menu. I have the blocks configured. Any ideas?

In addition, Drupal is displaying the following error message:

Strict warning: Only variables should be passed by reference in accordion_menu_output() (line 206 of F:\xampp\htdocs\memehope\sites\all\modules\contrib\accordion_menu\accordion_menu.module). I doubt that that is related but thought I'd pass it along.

Comments

#1

Category:bug report» support request

Let's confirm the h2 display is a bug. What I understand you to describe is the intended functionality.

What is the "header" value on "admin/config/user-interface/accordion_menu" of your site? The default is "h2" which would generate h2 elements as the top-level menu items. The "accordion-ed" menu items beneath each top-level item are in the usual "ul" and "li" format.

Are you seeing something different? If so:
- please provide an URL or attach HTML output from a page on your site.
- please confirm module release numbers or dates if dev release.

Thanks for reporting the strict warning. I fixed that in latest commit today.

#2

Priority:critical» normal
Status:active» fixed

Marking as fixed in absence of further information.

#3

Status:fixed» closed (fixed)

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

nobody click here