Forums

Covering OroCommerce topics, B2B eCommerce trends, 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 4 months, 1 week ago.

  • Creator
    Topic
  • #15565
    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
  • #15566

    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

    #15568
    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

    #15569

    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

    #19850
    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
ssossossosso