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#
Maximum number of the testimonials
This object is a Paginator as well, so it performs the pagination function to specify which view should be used to create pagination links. Example: items.next_page
avatar image of the user created the testiminial.
Check if the comment has an order.
The date of creating the testimonial.
Conent of the testimonial.
The type of the item which the user is giving the testimonial of.
Allowed values:allproductstore`default:store` all
Sorting number start from zero
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
. 
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

扫码加入交流群Modified at 2025-02-20 07:53:20