Add dynamic template system: Implemented header, footer, and section templates with corresponding models, migrations, and Filament resources. Enhanced Page model to support dynamic templates and updated localization files for new terms. Added TemplateService for managing template data and rendering. Comprehensive documentation included for usage and best practices.
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
// Navigation
|
||||
'navigation_group' => 'Templates',
|
||||
'navigation_label' => 'Section Templates',
|
||||
'model_label' => 'Section Template',
|
||||
'plural_model_label' => 'Section Templates',
|
||||
|
||||
// Sections
|
||||
'section_general' => 'General Information',
|
||||
|
||||
// Form Fields
|
||||
'field_title' => 'Title',
|
||||
'field_html_content' => 'HTML Content',
|
||||
'field_html_content_help' => 'Placeholder format: {type.field_name} e.g: {text.title}, {richtext.content}, {image.banner}',
|
||||
'field_is_active' => 'Active',
|
||||
|
||||
// Table Columns
|
||||
'column_title' => 'Title',
|
||||
'column_is_active' => 'Active',
|
||||
'column_created_at' => 'Created At',
|
||||
'column_updated_at' => 'Updated At',
|
||||
'column_deleted_at' => 'Deleted At',
|
||||
|
||||
// Actions
|
||||
'create' => 'New Section Template',
|
||||
'edit' => 'Edit Section Template',
|
||||
'view' => 'View Section Template',
|
||||
'delete' => 'Delete',
|
||||
'restore' => 'Restore',
|
||||
'force_delete' => 'Force Delete',
|
||||
|
||||
// Messages
|
||||
'created_successfully' => 'Section template created successfully.',
|
||||
'updated_successfully' => 'Section template updated successfully.',
|
||||
'deleted_successfully' => 'Section template deleted successfully.',
|
||||
'restored_successfully' => 'Section template restored successfully.',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user