What this solution does
The module implements commenting functionality for any Bitrix entity. To use likes and dislikes in the component, the YLab: Likes/Dislikes module must be installed.
The ylab:comments component is designed for displaying and adding comments. It includes all necessary features to start working immediately. The example configuration includes parameters for managing permissions: allowing authors to delete their own unmoderated comments, permitting authors to edit their comments, setting an edition time limit in seconds (default 10800), enabling access for unauthenticated users, and defining WYSIWYG capabilities (HTML view, undo/redo, formatting, strong, em, del, superscript, subscript, link, image, align, unordered list, ordered list, horizontal rule, remove format, emoji).
The YLab: Comments module manages the display and configuration of the comment system. Sorting defaults to descending date order, showing new messages first. The date and time format is set as dd.mm.yyyy hh:mm. Content binding uses content ID and content type ID; for example, in a news section, the specific news item ID goes in the content ID field, while the news infoblock ID goes in the content type field. Ten comment threads are displayed per page. Author names appear as «First Name Last Name» unless otherwise specified. Commenting rights are granted to users in the designated groups. When mentioning users, the modal window shows only those belonging to the specified groups and matching the defined personal data filter parameters. Pre-moderation of comments can be enabled via a dedicated setting.
The YLab: Comments module provides components for managing and displaying comments. The ylab:comments.moderate component is designed to display a list of unmoderated comments and perform operations on them. It is ready for use immediately after installation.
Configuration examples include parameters for sorting by date (newest comments first by default), content identification via ID and type, and setting the number of comment threads per page. Navigation across pages supports the modern template and allows for asynchronous loading.
The ylab:comments.user component displays comments posted by a specific user. The likes module is required for the rating functionality to work correctly, utilizing the standard .default template for like operations.
The YLab: Comments user component displays comment threads for a specific user or the current visitor. By default, comments are sorted by date in descending order, placing the newest messages at the top. Ten comments are displayed per page. Navigation uses a modern template with asynchronous loading support to avoid full page refreshes. If the user identifier is not specified, the component automatically detects the current visitor.
General iT can connect “YLab: Comments”, install and configure the module, and make sure the integration works correctly.