OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Can I add my datagrid to oro cms widget

This topic contains 4 replies, has 3 voices, and was last updated by  marcosjp88 6 years, 1 month ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #32675

    Ayman Hussein
    Participant

    Hi,

    Can I add my datagrid to oro CMS widget, so I can inject the widget wherever i want.

    Thanks!


    arh922

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #32676

    vitaliyberdylo
    Participant

    Hi,Ayman Hussein.

    Please, read the documentation about adding widgets to cms page
    https://github.com/oroinc/orocommerce/blob/master/src/Oro/Bundle/CMSBundle/Resources/doc/widgets.md

    You shuld register own widget.
    For example if you called it ‘datagrid’, you should render it

    in widget, which implement Oro\Bundle\CMSBundle\Widget\WidgetInterface, you should inject twig renderer and render template with this macros

    #32677

    Ayman Hussein
    Participant

    Hi vitaliyberdylo,

    Actually I did what suggested above, but I got the following js error:

    datagrid error in cms widget

    Thanks!


    arh922

    #32678

    vitaliyberdylo
    Participant

    I investigated this problem.
    Unfortunately at the moment we cant provide adding grids to oro cms widget.
    There are some issues with required grid templates such as toolbar and grid-views.

    You can add manualy to your widget tamplate
    But toolbar will be no stylized

    #32679

    marcosjp88
    Participant

    thank you for the solution.

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

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

Back to top