Hi,
I'm trying to make my side menu work properly, but I'm having some difficulty. The screenshots below will best explain the problem.
But: after I browse around the site a bit, I start getting many warnings on some of the pages, all referencing common.inc - for example:
-
Warning: Invalid argument supplied for foreach() in element_children() (line 6541 of /home/mysite/public_html/d7/includes/common.inc).
The warnings only disappear after I change the sidebar menu setting back to 2nd level. Is there any way to have the 3rd level menu settings and not have the warnings?
Please give me your website link and account. Thanks!
We highly recommend you to create a new SIDEBAR menu instead of using MAIN MENU for SIDEBAR menu.
Ok. thanks.
Please explain how, or send me link to documentation for this. Is Sidebar menu a seperate module? Sorry, I don't understand.
thanks,
-Matt
We mean that you can go to admin/structure/menu, create a menu named "SIDEBAR MENU".
Then edit BLOCK SIDEBAR MENU(admin/structure/block/manage/menu_block/1/configure), section "MENU", select new menu.
I did what you said, and now I have this. Why?
Also, can you tell me WHY menu block gives me problems when I use main menu to create side menu? I thought this is what menu block module is for.
thanks,
-Matt
Please take a look at http://megadrupal.com/comment/10546#comment-10546
The link above is to a thread I started last year, and I didn't understand. The last comment to me was that I figure it out myself :/
It is the same problem at your comment #5 in above and our developer answered at his comment #18.
I still don't understand the answers in that thread, just as I didn't understand it last year, when I originally asked it. I was basically told 'too bad, go figure it out by yourself'.
I will look at those explanations again tomorrow morning to try to understand, but please be patient. I know that your first language is not english, and that you are trying to answer all questions in your support forum, but please understand that sometimes the explanations aren't worded in the best way - it makes understanding what you and Khoa say sometimes difficult to interpret. If I don't understand an explanation, please try to be patient, just as I am beign as well :)
I'll re-read everthing again tomorrow, but I have a feeling I will be reformulating my question step by step.
thanks,
-Matt
I think sidebar menu will not work on any page that page link is not added to menu.
When you add your sidebar menu to page, example: "Support" page, you need to add "Support" to menu also. If "Support" does not exit in menu, you will get errors as above screenshot.
Ok, I think I understand what you're saying:
If the hierarchy of the website is
Cars
Red cars
Blue cars
Green cars
Yellow cars
then you're saying that in the side menu of the Main 'Cars' page, I need to have in the side menu, like this:
Cars
Red cars
Blue cars
Green cars
Yellow cars
But it makes no sense to have 'Cars' in that side menu, since it should be only the child pages of Cars. Do you agree?
thanks for the explanation,
-Matt
We use module https://www.drupal.org/project/menu_block for sidebar menu. You can please download and test it in a fresh drupal site to see how it works.
It is a contrib module so we can not make any customization. If you do not like this module, you can uninstall and find another one that works better.