OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – HTML, JavaScript, CSS, Design Questions OroUIBundle's navigation settings

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

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #34623

    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
  • #34624

    mdegoo
    Participant

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

    #34625

    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.

    #34626

    mdegoo
    Participant

    Thanks @Ishakuta!

    I finally passed thru this incomprehension by overriding the NavigationBundle.

    +1

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

The forum ‘OroPlatform – HTML, JavaScript, CSS, Design Questions’ is closed to new topics and replies.

Back to top