Documentation Index
Fetch the complete documentation index at: https://mintlify.com/emmanueljarquin-sys/GrupoMecsaCMS/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Testimonials module allows you to collect, manage, and display customer testimonials and reviews. Organize testimonials by category to showcase them across different sections of your website.Key Features
Customer Reviews
Store testimonials from clients and customers
Category Organization
Organize testimonials by project type or service
Full Details
Capture person, company, position, and testimonial text
CRUD Operations
Create, view, update, and delete testimonials
Testimonial Structure
Each testimonial includes:- Category (
categoria): Category ID for organization - Testimonial (
testimonio): The actual testimonial text - Person (
persona): Name of the person giving the testimonial - Company (
empresa): Company/client name (required) - Position (
cargo): Person’s job title or role - Created At: Submission timestamp
Creating Testimonials
Fill Testimonial Details
Required fields:
- Category: Select from hierarchical dropdown
- Testimonial Text: The testimonial content
- Company: Client/customer company name
- Person: Name of person giving testimonial
- Position: Their job title
Testimonial Creation Process
testimoniales.php
Category Integration
Testimonials are organized using the hierarchical category system:testimoniales.php
Display Category Name
When displaying testimonials, resolve the category name:Fetching Testimonials
Testimonials are retrieved with pagination:testimoniales.php
Testimonial Display
Testimonials are typically displayed in a table or card layout:- Company and Person: Who gave the testimonial
- Position: Their role
- Testimonial Text: The review content (truncated if long)
- Category: Classification
- Date: When it was submitted
- Actions: Edit and delete buttons
Editing Testimonials
Modify Information
Update any of the fields:
- Testimonial text
- Person name
- Company name
- Position
- Category
Deleting Testimonials
To delete a testimonial:- Click the delete button
- Confirm the deletion
- Testimonial record is permanently removed
Database Table
Table Name:testimoniales
| Column | Type | Description |
|---|---|---|
id | integer | Auto-incrementing primary key |
categoria | integer | Foreign key to categoria-servicios |
testimonio | text | Testimonial content |
persona | text | Person’s name |
empresa | text | Company name (required) |
cargo | text | Job title/position |
created_at | timestamptz | Submission timestamp |
API Endpoints
- GET
/rest/v1/testimoniales- List all testimonials - GET
/rest/v1/testimoniales?select=*&order=created_at.desc&limit=10&offset=0- Paginated testimonials - POST
/rest/v1/testimoniales- Create new testimonial - PATCH
/rest/v1/testimoniales?id=eq.{id}- Update testimonial - DELETE
/rest/v1/testimoniales?id=eq.{id}- Delete testimonial
Use Cases
Website Display
Testimonials can be fetched and displayed on:- Homepage testimonial section
- Service-specific pages (filtered by category)
- Dedicated testimonials/reviews page
- Case study pages
Filtering by Category
Query testimonials for specific categories:Best Practices
Next Steps
Categories
Manage testimonial categories
Clients
Link testimonials to clients