What this solution does
The Universal Favorites module provides a quick integration solution for adding website pages to a favorites list. It is compatible with all editions of 1C-Bitrix and supports both authorized and unauthorized users. Data is automatically synchronized upon user authentication.
The component can be placed anywhere on the site to display a toggle button for marking pages. The button state (active or inactive) is not cached but determined dynamically via a database query. This ensures the correct status is displayed even when the component is used within cached page areas.
The primary CSS class for styling is sl3w-favoritepages__button. The is-active class is applied to the button when the current page is already in the favorites list.
The Universal Favorites module saves links to the database for authorized users. The page title is taken from the h1 tag content or the title tag content. The time of adding the page is also recorded.
For unauthorized users, links are temporarily stored in cookies. Upon subsequent authorization, these records are automatically transferred to the database and merged with existing entries.
The module includes a component for displaying the list of favorite pages. This component can be styled to match your template design. Two items appear in the component list: the add button and the list display component. If they do not appear immediately, click the Update button in the Components section.
Detailed module settings are described on the developer's website.
General iT can connect “Universal Favorites”, install and configure the module, and make sure the integration works correctly.