This pre-defined component displays testimonials, which are feedback given by customers. The display order is set as per newest.Following is the location of this component.Example#
Variables#
Usage#
The file src\views\components\home\testimonials.twig
receives a list of testimonials
, which are the customers' feedbacks, in the form of a collection of items[]
,and then displays them inside a slider. The sorting of this collection is as per the newest.In the following code we see how we can easily display the values of item.avatar
, item.name
, item.text
inside the slider uing for-loop. Also salla-button
is used here to navigate between previous slide
and next slide
. Modified at 2024-02-12 13:09:16