Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
7 Trả lời
9740 Lượt xem

Hello.

I would like to move a menu item to a third level deep, for example:

Option 1

---> Option 1.1

------> Option 1.1.1

Option 2

 

But I can only move the menu to a second level deep, even that Odoo allows me to move it to a third level, when I release the item, it moves to a second level.

Is this impossible to do with Odoo?

Thanks.

Ảnh đại diện
Huỷ bỏ

@Andrés,

It is possible through the backend by going to Settings >> Website Settings > Configure website menus.

When I can find a bit of time I plan to build a frontend interface for this that handles category trees beyond the current limitations to the frontend interface out of the box.

I recommend building your category tree from the backend, as you can build unlimited subcategories.

Tác giả

@Luke Thanks for your fast answer. I have tried what you've said, and I have changed just the "Parent menu" field, but it doesn't work correctly: - I can see now that "Option 1.1" has an arrow (which denotes that it has a submenu). - If I click on "Option 1.1", it doesn't open the submenu, nor goes to the "Option 1.1" page I've seen that if I edit the menu from the "Website Settings", I have an icon next to the parent menu which allows me to modify several things, but I don't know what do I have to modify. Is there some manual which explains this? Thanks.

Andrés, it works just like Luke said, you have just to add another submenu to be able to view it correctly, I don't know why, maybe it needs two or more submenus to be recognized, it's not working properly, but at least it giving a result.

Andrès, it's not working properly at all, I've tested it again, and it's working for one item, and it should have imperatively a second menu beside, otherwise it doesn't work. So it's a complete mess, that's it. I'm correcting my self, I hope we get a proper solution for this.

Câu trả lời hay nhất
.dropdown:hover>.dropdown-menu {
    display: block;
}
Add this CSS, It's 100% work.


Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

:-(

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Andres, Try this : https://github.com/acsone/odoo/commit/ea5dd3f842df2a6439c5f54bbef3375ac1e8ab1fe,

It's a modification of the js responsible of limiting menus level on Odoo website. Do a backup before you do this chang we never know. 


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 25
10246
1
thg 4 24
2546
1
thg 2 23
2607
0
thg 10 21
2996
3
thg 10 20
5380