Категории услуг и удаление latest из блога

This commit is contained in:
Konstantin
2026-05-30 10:13:44 +03:00
parent e45a057ffa
commit 95ac0ef898
37 changed files with 1959 additions and 827 deletions
+13 -3
View File
@@ -442,6 +442,12 @@ class ControllerBlogArticle extends Controller {
$data['error_keyword'] = '';
}
if (isset($this->error['category'])) {
$data['error_category'] = $this->error['category'];
} else {
$data['error_category'] = '';
}
$url = '';
if (isset($this->request->get['filter_name'])) {
@@ -596,8 +602,8 @@ class ControllerBlogArticle extends Controller {
$data['main_blog_category_id'] = 0;
}
if (isset($this->request->post['article_blog_category'])) {
$categories = $this->request->post['article_blog_category'];
if (isset($this->request->post['article_category'])) {
$categories = $this->request->post['article_category'];
} elseif (isset($this->request->get['article_id'])) {
$categories = $this->model_blog_article->getArticleCategories($this->request->get['article_id']);
} else {
@@ -756,6 +762,10 @@ class ControllerBlogArticle extends Controller {
$this->error['meta_h1'][$language_id] = $this->language->get('error_meta_h1');
}
}
if (empty($this->request->post['article_category'])) {
$this->error['category'] = $this->language->get('error_category');
}
if (isset($this->request->post['article_seo_url']) && is_array($this->request->post['article_seo_url'])) {
foreach ($this->request->post['article_seo_url'] as $store_id => &$languages) {
@@ -932,4 +942,4 @@ class ControllerBlogArticle extends Controller {
$this->response->addHeader('Content-Type: application/json');
$this->response->setOutput(json_encode($json));
}
}
}