OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums OroCommerce Overriding Layouts Update file in Imports Folder

This topic contains 2 replies, has 2 voices, and was last updated by  Frank 2 months, 3 weeks ago.

  • Creator
    Topic
  • #40224

    Frank
    Participant

    Hi there,

    I want to use my custom bundle to apply a small modification in OroProductBundle yml-file
    (owner-item added in tree):

    In my understanding I do not need the full file, but some (essential parts) of it, to get it merged with unmodified Oro-core-yml-file automatically.

    So, I put parts of it into my custom bundle in the same directory:
    MyProductBundle/Resources/views/layouts/blank/imports/oro_product_list_item/oro_product_list_item.yml

    Together with the related twig-file (custom ‘owner’-block, only ):
    MyProductBundle/Resources/views/layouts/blank/imports/oro_product_list_item/oro_product_list_item.
    html.twig

    However, I don’t get it working:
    I get ‘item-already exists’, or ‘__product … has wrong syntax’ error messages.

    How the file should look like, to get it working?

    Thanks a lot.
    Frank

    PS:
    Of, course I have studied (but without success) docs like:
    https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/LayoutBundle/Resources/doc/imports.md, and
    https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/LayoutBundle/Resources/doc/layout_update.md

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #40258
    Andrey Yatsenko
    Andrey Yatsenko
    Moderator

    Instead of @addTree instruction, you should use @add with parent block id equal to __product_specification and block id __product_owner

    #40270

    Frank
    Participant

    Hi Andrey,

    works wonderful! The meaning of parentId (in the nodes-tree hierarchy – although obvious – becomes clear for me now).

    Thank you for your help!
    Frank

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

You must be logged in to reply to this topic.

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

Yes No