ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 3 replies, has 2 voices, and was last updated by  mdegoo 2 years, 8 months ago.

  • Creator
    Topic
  • #7502

    mdegoo
    Participant

    Hi all,

    I’m working on a new UIBundle extending OroUIBundle. The process succed using the “getParent()” way.
    All work well but now I’m trying to work on the application_menu.html.twig template which is call as “application_menu” in “oro/…/config/navigation.yml”.

    Here we have a path “OroUIBundle:Menu:application_menu.html.twig” and I have some questions:
    1. Where is the menu folder in UIBundle? I can find just one Menu:application_menu.html.twig only in NavigationBundle…
    2. When i try override application_menu with “template: ‘MyNewUIBundle:Menu:application_menu.html.twig'”, BAP can’t see my views/Menu/. How this works?
    3. Am’I supposed to extend Navigation bundle for work on the application_menu or can I
    just normaly use it in my ‘MyNewUIBundle:Menu’…?

    Can someone provide some advice on this?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #7791

    mdegoo
    Participant

    I still can’t deal whit this issue.
    Can anyone help me on this?
    I’ll be very grateful.

    #8224
    ishakuta
    ishakuta
    Participant

    Hi, @mdegoo
    1. There’s no such folder, cause UI bundle is just a foundation for UI, e.g. this reference is just a sample. Menu configuration from OroNavigationBundle override OroUIBundle navigation (when merging), and you can find application_menu.html.twig there too (in Nav bundle)
    2. In order to override application menu template – you have to override OroNavigationBundle
    3. Yes, cause actual template located there.

    Alternatively you can try to override application menu template location in your MyNewUIBundle,
    by setting different path to template in your navigation.yml:

    Let us know if you’ll have any further questions or difficulties.
    Thank you.

    #8227

    mdegoo
    Participant

    Thanks @Ishakuta!

    I finally passed thru this incomprehension by overriding the NavigationBundle.

    +1

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.