3.8 KiB
3.8 KiB
Hi-School Slide Manager Frontend Dashboard Setup
Quick Setup Guide
1. Create the Dashboard Page
- Go to WordPress Admin → Pages → Add New
- Set the page title to: Slide Dashboard
- Set the page slug to: slide-dashboard
- In the Page Attributes section, select the template: Slide Dashboard
- Publish the page
2. Full-Width Dashboard Features
The dashboard now includes:
- 🎯 Custom Header Bar: Professional navigation with Home, Admin, and Logout buttons
- 📊 Status Bar: Real-time statistics for active slides, connected sites, and last update
- 📝 Enhanced Tabs: Create Slides, Manage Slides, Preview Banner, and Analytics
- 🔄 Bulk Actions: Save all slides, save as drafts, import/export functionality
- 📱 Responsive Design: Works perfectly on all devices
3. Navigation Features
Header Navigation:
- 🏠 Home Button: Quick return to site homepage
- ⚙️ Admin Button: Access WordPress admin dashboard
- 👤 User Menu: Shows current user and logout option
Tab Navigation:
- ➕ Create Slides: Add up to 5 slide forms simultaneously
- 📋 Manage Slides: View, edit, and delete existing slides
- 👁️ Preview Banner: See how slides appear on companion sites
- 📈 Analytics: View slide performance and statistics
4. Set Up Members Plugin (if not already configured)
- Install and activate the Members plugin
- Go to Users → Roles → Add New Role
- Create a role called "Slide Manager" with these capabilities:
readedit_postsupload_fileshssm_manage_slides(custom capability)
5. Test the Dashboard
- Create a test user with the "Slide Manager" role
- Navigate to
/slide-dashboard/on your site - You should see the full-width slide management interface
6. Dashboard Workflow
Creating Slides:
- Click "Add New Slide Form" (up to 5 forms at once)
- Fill in slide details: title, subtitle, content, client
- Upload background image with live preview
- Add up to 5 CTA buttons per slide
- Select target sites (Hi-School, One Stop, Ace)
- Set scheduling dates and auto-publish options
- Save individual slides or use "Save All Slides"
Managing Slides:
- Filter by site, client, or status
- Edit existing slides inline
- Delete slides with confirmation
- Export slide data for backup
Preview System:
- Select target site and preview date
- See real-time banner preview
- Email preview to stakeholders
- Download screenshots for approval
5. Template Override (Optional)
If you want to customize the dashboard template:
- Copy
templates/page-slide-dashboard.phpto your active theme - Customize as needed - the plugin will use the theme version
6. API Key Management
- Go to WordPress Admin → Slides → Settings
- Manage API keys for companion sites
- Test REST API endpoints
7. Companion Site Integration
Use these REST API endpoints on companion sites:
GET /wp-json/hssm/v1/slides/{site}- Get slides for a specific siteGET /wp-json/hssm/v1/sites- Get available sitesGET /wp-json/hssm/v1/slide/{id}- Get specific slideGET /wp-json/hssm/v1/health- Check API health
8. Divi 5 Group Carousel Integration
The slides are designed to work with Divi 5's Group Carousel module:
- Add a Group Carousel module to your header
- Use the REST API to fetch slide data
- Populate carousel items with slide content
- Apply background images and CTA buttons
9. Troubleshooting
Dashboard not loading?
- Check if user has proper permissions
- Verify Members plugin is active
- Check error logs for PHP errors
AJAX not working?
- Verify nonce generation
- Check user permissions
- Enable WordPress debug mode
Template not found?
- Ensure template file exists in plugin directory
- Check file permissions
- Verify page template is set correctly