PHP code example of swiegmann / kirby-alternate-templates
1. Go to this page and download the library: Download swiegmann/kirby-alternate-templates library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
swiegmann / kirby-alternate-templates example snippets
return [
'swiegmann.kirby-alternate-templates' => [
'enabled' => true
]
];
/site/templates/[template-name]--[slug].php
/site/templates/[template-name]--[slug]--[slug].php
/site/templates/[template-name]--[slug]--.php
/site/templates/[template-name]--[slug]--[language-code].php
/site/templates/[template-name]--[slug]--[language-code]--.php