Hi,
We are building sites with .shtml-files. Is it possible to get Sitecake to accept .shtml-files?
Hi,
We are building sites with .shtml-files. Is it possible to get Sitecake to accept .shtml-files?
Not at the moment. Sorry.
Thank You for Your answer.
Would it be possible if there was no editable dynamic content? For instance, I’m only using SHTML for simple includes of navigation, common elements, etc. My clients only need to edit simple text and images that are never part of the included bits. Could you point me to the right line to force the shtml extension to load?
Hi,
as of version 2.3.1 Sitecake supports .shtml and .php pages. .php pages are parsed by default, but for .shtml you need to add index.shtml string into site.default_pages
configuration array.
By default value is :
$app['site.default_pages'] = ['index.html', 'index.htm', 'index.php', 'index.php5'];
it should be :
$app['site.default_pages'] = ['index.html', 'index.htm', 'index.php', 'index.php5', 'index.shtml'];
Order is important when sitecake is searching for default page, so if your index page is index.shtml, you should add it in 0 index in array.
Regards