OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – How do I? Questions oro_widget_render is duplicated in view? Is it an error?

This topic contains 3 replies, has 2 voices, and was last updated by  Mike Kudelya 7 years, 4 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
  • #36356

    thinh2010
    Participant

    Hi,

    I have Timetable Entity. In timetable view detail, I want to display detail about Course and Lesson related to it.
    This is my code

    It will display some basic information and attachment of Course and Lesson in Timetable.

    But the problem is, 2 blocks Attachment is the same, I mean in Course detail, it displays the attachment from Lesson, although I set different entityClass for oro_attachment_widget_attachments.

    Anyone got this problem, and do you have any ideal? Thanks for read.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #36357

    Mike Kudelya
    Participant

    Hi

    I have tested your case – two oro_widget_render call the same url with different arguments, result i put to subblocks, result is different. Just for debug, print your entityClass and entityId inside twig. Is result different? Could you please tell me, which version of oro you are using ? I’m using 1.10.8

    #36358

    thinh2010
    Participant

    Hi

    Sorry for late reply.
    This is the my entityClass and entityId:
    Code:

    Result:

    I’m using dev-master version.

    #36359

    Mike Kudelya
    Participant

    Hi

    I rather had in mind that need to print these variables inside template your route oro_attachment_widget_attachments. Did you try stable version 1.10 instead master? It may contains some errors and preferably use stable releases instead.

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

The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.

Back to top