close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Accordion error for side menu

Thread began 12/12/2011 9:12 am by mrs | Last modified 12/15/2011 11:03 am by Jason Byrnes | 2240 views | 6 replies |

mrs

Accordion error for side menu

Hi, I have been wondering if this is a problem or not... basically, the side menu does not collapse like an accordion does, and it is going to grow rather long with the amount of categories I need to add to it, and I was thinking that I will need to add an accordion to make it more manageable. However, I have just seen that there is an error on my page and the error is this:

Accordion is not defined
[Break On This Error] new Accordion(toggler, content, {


I assume that because this is an error referring to an accordion, then the side menu is meant to collapse and expand as needed. Could you please advise as to what is wrong?

Many thanks.

Mat

Sign in to reply to this post

DougBBeta Tester

I also had that problem awhile back.. and was too busy to fix the problem.. so I commented out the code....yup.. real smart!... I'll be interested in a fix for the issue.

Sign in to reply to this post

mrs

I've just found the error is on line 15 of functions.js

Line 15 is:

<h3><a href="../../../../products_results.php?Search=1&ProductCategoryID[]=' . $row["CategoryID"] . '">' . $row["CategoryName"] . '</a></h3>';


AND, why is it all accordions use h3 as the tag? I always use h3 in my designs, and to overcome any h3 text becoming an accordion, I have to compound my CSS :o(

Any thoughts?

Thanks.

Mat

Sign in to reply to this post

Jason ByrnesWebAssist

on the webassist/plugins/side_menu/nested_accordion/sidemenu.php page, find the following line:

<script type="text/javascript" src="functions.js"></script>




and change it to:

<script type="text/javascript" src="../accordion/js/accordion.js"></script>
<script type="text/javascript" src="functions.js"></script>
Sign in to reply to this post

mrs

Cheers for that Jason, I now have the accordion working as I suppose it was meant to work, but is there any way to make the sub levels of the accordion disappear too? If you look at products_results.php you see that I have a number of options on display in the side menu.

The top level are green, and the sub levels are grey. I would like to hide all the grey so the green are only visible until they are clicked on.

How can I do that without breaking the menu? I assume it's a case of moving the accordion level up one, but I'm not sure how to change this.

Thanks again.

Mat

Sign in to reply to this post

mrs

Just to clarify why I need top level accordion affects on this. Eventually, when I have the full amount of categories in place, I will have 8 top level categories, and each one of them will have 7 sub-categories and again each with further sub-sub-categories and so on.

So even with the accordions closed to their fullest extent as they currently exist, I will have 60+ items on display in the side menu, which is clearly too much for any user to want to look at in one go.

I keep trying to edit it, but I just can't see where to amend the code to achieve what I need.

Thanks.

Mat

Sign in to reply to this post

Jason ByrnesWebAssist

in the webassist/themes/<your theme>/plugins/plugin.php file (where <your theme> is the theme you are using), change:

php:
$WASideMenu = new

 WA_Include('../../../plugins/side_menu/nested_accordion/sidemenu.php');



to either:

php:
$WASideMenu = new WA_Include('../../../plugins/side_menu/sidemenu.php');



or:

php:
$WASideMenu = new WA_Include('../../../plugins/side_menu/accordion/sidemenu.php');
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...