OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce need to add navigation menu to the other pages

This topic contains 8 replies, has 2 voices, and was last updated by  aman.srivastava462 4 years, 3 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
  • #41264

    aman.srivastava462
    Participant

    i want to add this navigation menu to https://prnt.sc/qnhwud , to my self created pages, I am rendering the twig from controller so how can i do this ?
    is there any doc regarding this ?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Author
    Replies
  • #41269

    Andrey Yatsenko
    Moderator

    This is the menu, named “oro_customer_menu”.
    You can edit it from the management console: https://doc.oroinc.com/user/back-office/system/frontend-menus/edit-frontend-menu/#user-guide-system-menu-menu-frontend
    Or add new items with navigation.yml: https://doc.oroinc.com/backend/navigation/#menus

    #41276

    aman.srivastava462
    Participant

    Hello Andrey,

    as i am adding navigation for page that is redirect by this,
    $this->forward(‘MarketplaceBundle:Frontend\SellerProduct:editStepTwo’, [‘request’ => $request, ‘product’ => $product]
    route are same of both pages but at first page navigation are showing when i click continue at the second page navigation are not showing.

    i am creating a product form (as reference by admin) for seller, so it is not after clicking continue it removes the navigation menu for second form of creating product. is it possible to add the navigation at the second form also?

    #41281

    Andrey Yatsenko
    Moderator

    I guess the issue is related to the way, you render the form on a second page.

    Please, make sure, you are rendering the second page with Layout engine, as when rendering templates in a standard Symfony way you will not get the support for all the features in the OroCommerce storefront.
    For more details see OroCommerce Layout engine documentation.

    #41283

    aman.srivastava462
    Participant

    When i am doing this with using layout, and extending the template
    {% extends ‘OroUIBundle:actions:update.html.twig’ %}

    getting error that isWidgetContext variable is not available. could you please help me.

    #41284

    aman.srivastava462
    Participant

    One more question i have that, layout engine can only work if i will redirect to route using get request,
    if i am using symfony forward method for call the routes from symfony controller layout engine is not working.

    #41288

    Andrey Yatsenko
    Moderator

    When i am doing this with using layout, and extending the template
    {% extends ‘OroUIBundle:actions:update.html.twig’ %}

    The storefront doesn’t support classic Twig templates inheritance, you should render everything with layout block themes. Please follow the documentation I shared before.

    if i am using symfony forward method for call the routes from symfony controller layout engine is not working.

    Probably this feature is not supported by the engine, as we don’t use forward in an application and I don’t have any experience with it. If you want to reuse some page layout parts, it is recommended to use layout imports.

    #41290

    aman.srivastava462
    Participant

    the issue is that I am not able to add the layout for the post request route. can I add it for the post route also or it is not possible?

    #41300

    aman.srivastava462
    Participant

    Hello Andrey,

    thanks for the help, I have succeeded in solving the issue :)

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

The forum ‘OroCommerce’ is closed to new topics and replies.

Back to top