Task #70
openCarousel Media Management Module
0%
Description
Implement a homepage carousel management feature that allows the admin to upload, manage, and display carousel media (images/videos) with captions and descriptions. The system should dynamically load carousel items from the database and display them in a rotating slider on the website. Only valid and approved carousel records should be shown to users.
***carousel_table
Fields & Description
Field Description
id (PK) Unique ID for each carousel item
image Image file path / URL (nullable if video used)
video Video file path / URL (nullable if image used)
caption Title text displayed on carousel
description Short descriptive text for carousel slide
***Validations
*At least one media field must be provided (image OR video)
*caption is mandatory (minimum 3 characters)
*description is mandatory (minimum 10 characters)
*image must be JPG/PNG format only
*video must be MP4 format only
*Both image and video cannot be empty at the same time
*Duplicate carousel items with the same caption should not be allowed
*If no carousel items exist, show a user-friendly message:
“No featured content available.”