diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 7d27badbc83..d11f2503add 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -524,7 +524,9 @@ if ($action == 'addcontainer') $substitutionarray=array(); $substitutionarray['__WEBSITE_CREATE_BY__']=$user->getFullName($langs); - $objectpage->content = make_substitutions(file_get_contents(DOL_DOCUMENT_ROOT.'/website/pagetemplate.html'), $substitutionarray); + + // Init content with content into pagetemplate.html, blogposttempltate.html, ... + $objectpage->content = make_substitutions(@file_get_contents(DOL_DOCUMENT_ROOT.'/website/'.$objectpage->type_container.'template.html'), $substitutionarray); } if (! $error)