Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

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 marcosjp88 6 months, 1 week ago.

  • Creator
    Topic
  • #32675
    Ayman Hussein
    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
    Moderator

    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
    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
    Moderator

    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
    marcosjp88
    Participant

    thank you for the solution.

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

You must be logged in to reply to this topic.

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

Yes No
ssossossossossosso