feat(cms): refactor page content management and implement detailed editors

Refactor the CMS page content system to use a more modular configuration-driven approach. This replaces the monolithic `pageContentConfig.js` with individual configuration files for each page and introduces a shared field utility to standardize editor components.
Key changes:
- Implement a generic `_renderSingletonPageView` helper to reduce duplication across controllers.
- Enhance `_createPageContentController` with `normalizeForEditor`, `normalizeForApi`, and `preparePayload` hooks for custom data transformation.
- Create dedicated configuration and view structures for Partnerships, History, Accreditation, Admissions, and Policies pages.
- Add a specialized section editor for Policies to manage complex nested content.
- Improve the frontend `page-content-editor.js` with support for visibility logic, auto-sequencing for arrays, and URL synchronization for active tabs.
- Update data JSON files to align with the new schema.
This commit is contained in:
Tống Thành Đạt
2026-04-20 19:43:28 +07:00
parent 8b6bf5fe6e
commit 7df3a6f6bf
58 changed files with 7501 additions and 844 deletions
+8 -3
View File
@@ -1,7 +1,7 @@
{
"highlight": {
"icon": "fa-trophy",
"text": "2025 Milestone Reached: A Rapidly Growing Global Community!",
"text": "History Save Check",
"linkLabel": "Read Full Story",
"href": "#timeline-content"
},
@@ -14,7 +14,12 @@
"yearLabel": "Decade / Year",
"categoryLabel": "Category",
"buttonLabel": "Apply Filters",
"yearOptions": ["All Years", "2020 - Present", "2010 - 2019", "2005 - 2009"],
"yearOptions": [
"All Years",
"2020 - Present",
"2010 - 2019",
"2005 - 2009"
],
"categoryOptions": [
"All Categories",
"Academic Programs",
@@ -94,4 +99,4 @@
}
]
}
}
}