forked from UKSOURCE/cms.lams
feat(cms): enhance content editors and implement automatic ID generation
Improve the CMS administration interface across multiple pages (Accreditation, Admissions, History, Partnerships, and Policies) with a focus on usability and data integrity. Key changes include: - Implement `ensureUniqueIds` utility to automatically generate and maintain unique slugs for content items, removing the need for manual ID entry in the UI. - Refactor the Admissions calculator to support detailed per-option editing via a new dedicated view and routes. - Replace basic datalists with a custom, searchable icon combobox component for better visual selection. - Update `_renderSingletonPageView` to handle active tab persistence via query parameters. - Streamline editor configurations by removing redundant fields and improving help text. - Enhance the Admissions "Key Dates" editor with a dynamic table interface for managing columns and rows. - Normalize data payloads in controllers to ensure consistent API responses and internal linking.
This commit is contained in:
+26
-16
@@ -1,24 +1,22 @@
|
||||
{
|
||||
"highlight": {
|
||||
"icon": "fa-trophy",
|
||||
"text": "History Save Check",
|
||||
"linkLabel": "Read Full Story",
|
||||
"href": "#timeline-content"
|
||||
"icon": "fa-magnifying-glass",
|
||||
"text": "2025 Milestone Reached: A Rapidly Growing Global Community!2025 Milestone Reached: A Rapidly Growing Global Co",
|
||||
"linkLabel": "Read Full StoryRead Full Story",
|
||||
"href": "/admin/history"
|
||||
},
|
||||
"hero": {
|
||||
"badge": "Our Journey",
|
||||
"title": "Building the Future of Education.",
|
||||
"description": "From our humble beginnings to becoming a global leader in online education, explore the key moments that define our legacy."
|
||||
"badge": "Our JourneyOur JourneyOur JourneyOur Jou",
|
||||
"title": "Building the Future of Education.Building the Future of Education.Building the Future of E",
|
||||
"description": "From our humble beginnings to becoming a global leader in online education, explore the key moments that define our legacy.From our humble beginnings to becoming a global leader in online education, explore the key momen"
|
||||
},
|
||||
"filters": {
|
||||
"yearLabel": "Decade / Year",
|
||||
"categoryLabel": "Category",
|
||||
"buttonLabel": "Apply Filters",
|
||||
"yearOptions": [
|
||||
"All Years",
|
||||
"2020 - Present",
|
||||
"2010 - 2019",
|
||||
"2005 - 2009"
|
||||
"2005 - 2009",
|
||||
"2015 - 2019"
|
||||
],
|
||||
"categoryOptions": [
|
||||
"All Categories",
|
||||
@@ -30,7 +28,6 @@
|
||||
]
|
||||
},
|
||||
"timeline": {
|
||||
"loadMoreLabel": "Load Earlier Milestones",
|
||||
"items": [
|
||||
{
|
||||
"id": "student-experience-innovation",
|
||||
@@ -40,7 +37,7 @@
|
||||
"categoryLabel": "Student Experience",
|
||||
"title": "Innovation in Student Experience",
|
||||
"description": "Enhanced student support through integrated digital services, academic advising, and career development platforms.",
|
||||
"image": "/uploads/history/2026.png",
|
||||
"image": "/uploads/history/Colorful_Square_Background.png",
|
||||
"imageAlt": "",
|
||||
"stats": [],
|
||||
"featured": true
|
||||
@@ -53,7 +50,7 @@
|
||||
"categoryLabel": "Global",
|
||||
"title": "Expansion of International Partnerships",
|
||||
"description": "Established collaborations with academic institutions and industry partners across regions, enabling dual qualifications and cross-border learning opportunities.",
|
||||
"image": "/uploads/history/2025.png",
|
||||
"image": "/uploads/history/7281.jpg",
|
||||
"imageAlt": "",
|
||||
"stats": [],
|
||||
"featured": false
|
||||
@@ -92,11 +89,24 @@
|
||||
"categoryLabel": "Academic",
|
||||
"title": "Strategic Academic Framework Introduced",
|
||||
"description": "Established a future-focused academic model aligned with international standards, integrating applied learning, digital competencies, and global perspectives.",
|
||||
"image": "/uploads/history/2023.png",
|
||||
"image": "/uploads/history/7281.jpg",
|
||||
"imageAlt": "",
|
||||
"stats": [],
|
||||
"featured": false
|
||||
},
|
||||
{
|
||||
"id": "strategic-academic-framework",
|
||||
"year": "2027",
|
||||
"yearRange": "2020 - Present",
|
||||
"category": "All Categories",
|
||||
"categoryLabel": "Academic",
|
||||
"title": "Strategic Academic Framework Introduced",
|
||||
"description": "Established a future-focused academic model aligned with international standards, integrating applied learning, digital competencies, and global perspectives.",
|
||||
"image": "/uploads/history/kVI17_2B.webp",
|
||||
"imageAlt": "aaa",
|
||||
"stats": [],
|
||||
"featured": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user