Contact Page Structured Fields
Test the new structured editing system that prevents layout breaking
✓ Layout Protected
✓ Data Separated
✓ User-Friendly
✓ No Errors
Testing Steps
Follow these steps to see the structured fields in action
Step 2: Find the "Contact" page in the list and click
the Edit button (pencil icon)
Step 3: Notice you DON'T see a Quill rich text
editor. Instead, you see:
Header Section Card - Title and subtitle fields
Contact Information Card - Phone, email, address
fields
Business Hours Card - Multiple time slot fields
with add/remove buttons
Step 4: Make a change:
Change phone number to +1 (555) 999-8888
Or update the header title to Contact Sky Art Shop
Or add a new business hour slot
Step 5: Click "Save Page" button at
the bottom of the modal
Step 6: Return to this page and click the button
below to refresh the preview:
Refresh Contact Page Preview
What to Expect: The contact page will show your
updated data but the beautiful gradient layout, icons, and styling
will remain perfectly intact!
Technical Details
Database Structure
{
"header": {
"title": "Our Contact Information",
"subtitle": "Reach out to us..."
},
"contactInfo": {
"phone": "+1 (555) 123-4567",
"email": "contact@skyartshop.com",
"address": "123 Art Street..."
},
"businessHours": [
{ "days": "Monday - Friday", "hours": "9:00 AM - 6:00 PM" },
{ "days": "Saturday", "hours": "10:00 AM - 4:00 PM" }
]
}
How It Works
Admin edits fields → Structured data collected
JavaScript function → Generates formatted HTML from
template
Save to database → Stores both structured data
(JSON) and generated HTML
Frontend displays → Shows the generated HTML
Result → Data changes, layout stays perfect!
Note: Other pages (About, Privacy) still use the rich
text editor because they don't have a fixed layout requirement. The
system automatically detects which editor to show.