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.
- CreatorTopic
- January 14, 2020 at 3:55 am #41264
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 ? - CreatorTopic
- AuthorReplies
- January 14, 2020 at 8:46 am #41269
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/#menusJanuary 14, 2020 at 9:36 pm #41276Hello 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?
January 15, 2020 at 6:10 am #41281I 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.January 15, 2020 at 9:37 pm #41283When 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.
January 15, 2020 at 11:19 pm #41284One 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.January 16, 2020 at 2:53 am #41288When 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.
January 16, 2020 at 9:44 pm #41290the 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?
January 19, 2020 at 9:35 pm #41300Hello Andrey,
thanks for the help, I have succeeded in solving the issue :)
- AuthorReplies
The forum ‘OroCommerce’ is closed to new topics and replies.