Hi Nemo1,
I'm experiencing a problem trying to display html page with content box with your tutorial,
I changed the cms.tp like this :
<!-- hook module -->
{if !$content_only}
{hook h='customCMS'}
{/if}
<!-- hook module -->
<div class="rte{if $content_only} content_only{/if}">
{$cms->content}
</div>
I changed the contentbox.php like this :
public function install()
{
if (Shop::isFeatureActive())
Shop::setContext(Shop::CONTEXT_ALL);
if (!parent::install()
|| !$this->registerHook('header')
|| !$this->registerHook('footer')
|| !$this->registerHook('customCMS')
|| !CONTENTBOXModel::createTables())
return false;
Configuration::updateValue($this->monolanguage_content, 0);
Configuration::updateValue($this->text_editor_content, 1);
Configuration::updateValue($this->content_wrapper, 0);
Configuration::updateValue($this->content_wrapper_class, '');
Configuration::updateValue($this->content_wrapper_id, '');
$this->_clearCache('template.tpl');
return true;
}
And added theses code at the end of the contentbox.php :
public function hookcustomCMS($params)
{
return $this->hookDisplayHome($params);
}
}
Thank you by advance for your help, here is the page i tried to modify : http://pariscave.com/content/7-accueil