Answer the question
In order to leave comments, you need to log in
How to create additional text pages?
Opencart has standard pages like about us, contacts, etc. (templates in information/*.tpl) . The question is how to create more such pages. I have about 10 text ones (with different designs), but in standard opencart there are much fewer available ones.
Answer the question
In order to leave comments, you need to log in
If the design of the blocks (header, footer) is the same - insert the layout directly into the studio in the admin panel.
If the page is completely different from the main site, then I would make a field in the information, a checkbox of the "own layout" type, and in the controller I would display a separate template file for my layout, something like:
if ($svoya_verstka) {
$this->response->setOutput($this->load->view('information/information_empty', $data)); // наш файл шаблона
} else {
$this->response->setOutput($this->load->view('information/information', $data));
}
echo $description;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question