Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4052 มุมมอง

I'm trying to create an accordion view from product.category view.

I want all the categories at top and if any of them have childs I want them in a accordion list.

For Example:

    All/Purchase/Chairs/C88

  • All

    • Purchase

      • Chairs

        • C88     

This but with the product categories at the view.


Thank you

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You can achieve that by applying directly bootstrap classes in your view definitions as outlined in the following snippet ==> my_view.xml:

To solve your specific problem you can build a qweb-template which inserts tags needed for the accordion (accordion-items) at the proper places in your view definition.

.... 

Comment: 

Sorry, but I can't give a snippet, cause xml tags not working in this editor! Best have a look at the bootstrap documentation for accordion. You can copy/paste code samples from there




อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
มิ.ย. 25
2107
1
มิ.ย. 25
978
0
ก.พ. 25
926
1
พ.ย. 24
1832
1
พ.ย. 24
1055