I was going to replace Menu Views with this module as it promises greater flexibility. However, I can't seem to make it work. I run D7.14 and installed the module. The Attach Block field set shows up in the Edit menu link form. I can select a block and save the form. When I return to this form, no block is selected and no block is inserted into the menu either.
Doing the same with Menu Views works fine btw. Any pointers as to where to look?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | menu_attach_block-form_options_items_overloading-1673110.patch | 2.44 KB | cameron tod |
Comments
Comment #1
wernerglinka commentedLooks like there is a conflict with the Menu attributes module. I disabled Menu attributes and Menu Attach Block works.
Comment #2
wernerglinka commentedUpdate: After I disabled Menu attributes, Menu attach block started working. Then I enabled Menu attributes again and it kept working. Except you can not change the block in the menu item anymore. This seems to be a module weight issue. I don't know much about it but I read that module weight will determine in which order the module hooks are called.
I wonder whether the maintainer is aware of this? Is there a way to avoid this conflict besides disabling/enabling the Menu attributes module?
Comment #3
cameron tod commentedThanks for the report. I will test MAB with Menu Attributes and see what the conflict is.
At present, MAB stores its data in the Menu Object, which is serialized, saved in the database, and loaded whenever the menu item is. It might be that these two modules are overwriting each other's data.
I'm away for the weekend (a much needed short holiday!) but will have a look for you on Monday.
Comment #4
wernerglinka commentedThank you for the reply cam8001. It looks like this problem is just in the UI. Once you have disabled Menu Attributes and selected a block the block will stay enabled even when you enable menu Attributes again. You can not change the selection, for that you have to disable Menu Attributes again. Also, a;; menu attributes are unaffected by this.
Thanks again for the reply and have a nice weekend.
Werner
Comment #5
cameron tod commented_menu_attributes_form_altersets$form['options']['#tree']to TRUE, which changes the array path the menu_attach_block form elements. For some reason, this also removes any data from the MAB form elements in the resulting $form_state.Investigating...
Comment #6
cameron tod commentedOK, I've come up with a fix. Queuing for testing.
Comment #7
cameron tod commentedNow added to stable 7.x-1.1 release.
Comment #8
wernerglinka commentedThanks cam8001. I appreciate your quick response. I'll test it this week and let you know if anything comes up.