Meaning of the template/config.php
What the meaning of the template-folder/config.php:
- theme_name: template name, it will display on the CMS setting page for choosing a template
- blade_files: Please specify each blade file you want to list at the page setting section. The key is the blade file name without the .blade.php suffix.
- If you do not want the blade files selectable at the page setting section, put them into a sub-folder eg. template-folder/includes/
- A template-folder/config.php example:
return [
'theme_name' => 'Backend default Bootstrap Theme',
'blade_files' => [
'page-homepage' => 'The new homepage template',
'page-detail-default' => 'Default Detail Page: Main image under the main content',
'page-three-cards' => 'Three Cards Page: Extra content display as cards under the main content',
],
];
How to set the different display language in the setting page of your blade template:
- Use the locale language code as a key in the template-folder/config.php
- A template-folder/config.php example:
return [
'en'=> [
'theme_name' => 'Simple Bootstrap 4.x Theme',
'blade_files' => [
'page-detail-default' => 'Default Detail Page: Main image under the main content',
'page-three-cards' => 'Three Cards Page: Extra content display as cards under the main content',
],
],
'zh'=> [
'theme_name' => '简洁的 Bootstrap 4.x 模版',
'blade_files' => [
'page-detail-default' => '默认页面模版,内容从上至下排列。子页面显示在最下方。',
'page-three-cards' => '附加内容显示成3个卡片在主内容下方',
],
],
];