OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums OroCommerce how to include shop frontend header and footer in my custom twig file

This topic contains 1 reply, has 2 voices, and was last updated by Andrey Yatsenko Andrey Yatsenko 1 month ago.

  • Creator
    Topic
  • #40544

    esakkiraj_s
    Participant

    i have created the custom frontend controller and twig file for the controller.how to include shopfrontend header and footer in twig file.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #40547
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    For the extensibility and themes support, OroCommerce storefront is built using Layouts engine and it works a bit different way, you can’t just include a header and footer in another page. Instead, you have to use @Layout annotation to build a page. Take a look at the official documentation for more details https://oroinc.com/b2b-ecommerce/doc/current/dev-guide/front-ui/layouts

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

You will be redirected to [title]. Would you like to continue?

Yes No