تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
1842 أدوات العرض

Hi, 
we operate a website for one event only. We want to use all features of the event management , but we don't want to display an event submenu on the website. 
We want to control the individual areas from the top menu. that works fine too.
How can I hide the display of the submenu. 
Any Idea?

Thanks Alex

الصورة الرمزية
إهمال

Hey, did you find a solution?
Im having the same problem.

Hii Alexander Wagner,

       I just one question yo you that, you have to create the all of the you event into the front of the menu into the website, right?

الكاتب أفضل إجابة

Hi Josef, yes we found a solution. It's not very nice, but it helps...
Inherit Menu xml und remove the Events-Menu and create menu items with fixed url.

example for uor solution is https://bfpforum.de/
Hope it helps

الصورة الرمزية
إهمال
أفضل إجابة

Hii Alexandra Wagner,

     After the removing the Events menu from the xml you needs to add som code into the method _compute_menu

		​total_events = self.env['event.event'].sudo().search([('is_published','=',True)])
​menus = self.env['website.menu'].browse(website._get_menu_ids())
​main_menus_id = menus.search([('url','=','/default-main-menu'),('website_id','=',website.id)],limit=1)
​for event in total_events:
​if event.name not in menus.mapped('name') and main_menus_id:
​    ​self.env['website.menu'].create({'name':event.name,'url':event.website_url,'website_id':website.id,'parent_id':main_menus_id.id})
​menus = self.env['website.menu'].browse(website._get_menu_ids())

​After adding this code into the _compute_menu it dynamically adding the event into theasus websites main menus.If you want to seen an demo then i can send you.​

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
فبراير 21
3961
0
مارس 15
4011
0
أغسطس 16
3459
2
أبريل 25
2288
1
مارس 25
1263