Skip to main content

DIRECTUS COLLECTION: testimonials

  • Type: Standard Collection
  • Trang tương ứng: Home Page (/), Sanctuary (/sanctuary), Corporate Event (/coporate-event)
  • Mục đích: Quản lý đánh giá của khách hàng, đặc biệt là tích hợp review 5 sao từ Google Maps.

1. Danh sách Fields (Trường dữ liệu)​

Field NameTypeInterfaceDescriptioni18n
idUUIDPrimary KeyID duy nhấtKhông
statusStringSelect DropdownTrạng thái (published, draft)Không
ratingIntegerSelect DropdownSố sao đánh giá: 1, 2, 3, 4, 5 (Đặc biệt lọc 5 sao cho Google Review)Không
sourceStringSelect DropdownNguồn review: google_map (Google Review) | direct (Khách lẻ) | corporate (Doanh nghiệp)Không
author_nameStringInputTên khách hàng / Người đánh giáKhông
author_avatarMany-to-OneImageẢnh đại diện của khách hàngKhông
author_titleStringInputChức danh / Tên công ty (Dành cho khách hàng doanh nghiệp)Có
display_locationsCSV / SelectMulti SelectNơi hiển thị: home, sanctuary, corporateKhông
translationsTranslationsDirectus TranslationsBảng chứa nội dung review đa ngôn ngữCó

2. Bảng Đa Ngôn Ngữ (testimonials_translations)​

Field NameTypeInterfaceDescription
idInteger / UUIDPrimary KeyID
testimonials_idForeign KeyRelationalLiên kết tới testimonials.id
languages_codeForeign KeyRelationalMã ngôn ngữ (en-US, vi-VN)
author_titleStringInputChức danh dịch theo ngôn ngữ
contentTextText AreaNội dung chi tiết lời nhận xét / cảm nhận

3. Bộ Lọc Theo Yêu Cầu Layout​

  • Trang Sanctuary: Lọc lấy các review có source = google_map và rating = 5.
  • Trang Corporate Event: Lọc lấy các review có source = corporate hoặc display_locations chứa corporate.