Component usage
Add a product slider to your home page:Variables
Source type for products:
latest, most_sales, chosen_products, category, brandArray of IDs when source is
chosen_products, category, or brand. For example: [123, 456, 789]Main heading displayed above the slider
Subtitle or description text below the main title
URL for the “View All” button. If empty, the button is hidden
Maximum number of products to display in the slider
Sorting position of the component on the page (starts from zero)
Component attributes
Product source type passed from variables
Product count limit
Enables automatic sliding of products
JSON-encoded array of source IDs
Link to view all products page
Section heading text
Section subtitle text (supports HTML)
Unique identifier for the slider instance
Example with latest products
Example with specific category
Example with chosen products
The slider automatically adjusts the number of visible products based on screen size for optimal mobile viewing.
Configuration in twilight.json
This component is registered intwilight.json under features: