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,43 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Template Select Options
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This file contains the options for select, multiselect, checkboxlist,
|
||||
| radio, and togglebuttons fields in dynamic templates.
|
||||
|
|
||||
| Format: 'field_name' => ['key' => 'Label']
|
||||
|
|
||||
*/
|
||||
|
||||
// Example options - Add your own as needed
|
||||
'example_select' => [
|
||||
'option_1' => 'Option 1',
|
||||
'option_2' => 'Option 2',
|
||||
'option_3' => 'Option 3',
|
||||
],
|
||||
|
||||
'status' => [
|
||||
'active' => 'Active',
|
||||
'inactive' => 'Inactive',
|
||||
'pending' => 'Pending',
|
||||
],
|
||||
|
||||
'size' => [
|
||||
'small' => 'Small',
|
||||
'medium' => 'Medium',
|
||||
'large' => 'Large',
|
||||
],
|
||||
|
||||
'color_scheme' => [
|
||||
'light' => 'Light',
|
||||
'dark' => 'Dark',
|
||||
'auto' => 'Auto',
|
||||
],
|
||||
|
||||
// Add more options as needed
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user