OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions Extending another bundles grid

This topic contains 1 reply, has 2 voices, and was last updated by  Alexandr Smaga 9 years, 10 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
  • #33371

    Jowo
    Participant

    If we create a new custom bundle that creates a grid, for example like in OroCRM “Customer -> Accounts”.

    Is it possible, to create another bundle that can extend this bundle to add new functionality to this grid. For example, change the view of some of the data, or add new columns, or add a new button at the top corner or even a button in the last column of each row.

    Basically I want to create a base bundle which can be extended with additional functionality, but decouple them into two different bundles.

    Is this possible without getting too complicated? Or should we just create a completely new bundle based on the first one and overwrite everything?

    The basic idea is to create a generic bundle that will do stuff in the application to be used by any company. And then create an extended bundle that holds our business specific functionality that does not suit well for the generic usage.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #33372

    Alexandr Smaga
    Participant

    Hello.

    To add/remove buttons(in the top-right corner) you can use placeholder index_navButtons_after(doc) or another way – you can override template index.html.twig, it’s could be done according this documentation.
    Grid could be extended using extends directive in config, but keep in mind that we can just add something to grid. If we want to remove something or add some complex functionality we can use event listeners

Viewing 1 replies (of 1 total)

The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.

Back to top