DIRECTUS COLLECTION: site_settings
- Type: Singleton
- Trang tương ứng: Global (Dùng chung cho toàn bộ Website)
- Mục đích: Chứa toàn bộ thông tin cấu hình chung như Logo, Hotline, Email, Mạng xã hội, Địa chỉ và Google Maps embed.
1. Danh sách Fields (Trường dữ liệu)
| Field Name | Type | Interface | Directus Note / Description | i18n |
|---|---|---|---|---|
id | Integer / UUID | Primary Key | ID duy nhất | Không |
site_name | String | Input | Tên Website (Yata Wellness) | Không |
logo_light | Many-to-One | Image | Logo nền sáng (Media Library) | Không |
logo_dark | Many-to-One | Image | Logo nền tối (Media Library) | Không |
instagram_url | String | Input | https://www.instagram.com/yatawellness.sanctuary/ | Không |
whatsapp_number | String | Input | +84784444182 | Không |
whatsapp_url | String | Input | https://wa.me/84784444182 | Không |
zalo_number | String | Input | 0784444182 | Không |
zalo_url | String | Input | https://zalo.me/0784444182 | Không |
contact_email | String | Input | yatawellness.sanctuary@gmail.com | Không |
address_text | String | Input | Địa chỉ chi tiết | Có (Translation) |
google_map_url | String | Input | Link Google Maps (https://maps.app.goo.gl/j5Bfyd4cQRdAHmkm7) | Không |
translations | Translations | Directus Translations | Bảng chứa các trường đa ngôn ngữ | Có |
2. Bảng Đa Ngôn Ngữ (site_settings_translations)
| Field Name | Type | Interface | Description |
|---|---|---|---|
id | Integer / UUID | Primary Key | ID |
site_settings_id | Foreign Key | Relational | Liên kết tới site_settings.id |
languages_code | Foreign Key | Relational | Mã ngôn ngữ (en-US, vi-VN) |
address_text | String | Input | Địa chỉ chi tiết theo ngôn ngữ |
footer_text | Text | Text Area | Ghi chú chân trang / Copyright text |
3. Phân Quyền (Permissions)
- Public Role:
Read - Admin Role: Full Control