This topic contains 3 replies, has 3 voices, and was last updated by sandraa 8 years, 5 months ago.
- Topic
Hi, yesterday i had a small problem: Comments are used only with any activity entity. I had to connect Comment functional to a simple custom entity without any activities linked to it.
So, here is my solution. It looks a little dirty but it works in a minutes1) Create a migration for you custom entity to link it with comments. See this migration example
2) In your entity view template (e.g. YourBundle/Resources/views/YourEntity/view.html.twig) add these lines:{% import 'OroEntityConfigBundle::macros.html.twig' as entityConfig %}
123{%- set commentsData -%}{% placeholder view_content_data_comments with {entity: entity} %}{%- endset -%}After running migration you will see a new “comments” tab in your entity view action.
P.S.: Tested only in BAP 1.8Docker environment for Symfony2/OroCRM/OroBAP development on Windows platform
https://github.com/stepansib/sf-oro-docker
The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.