# Настройка SEO заголовков

#### Шаг 1

{% code lineNumbers="true" fullWidth="true" %}

```php
// В главном макете сайта в блоке head замените следующий код
/*
<title><?php Core_Page::instance()->showTitle()?></title>
<meta name="description" content="<?php Core_Page::instance()->showDescription()?>">
<meta name="keywords" content="<?php Core_Page::instance()->showKeywords()?>">
*/
// на нижний

<title><?php MultiLanguage_Page::instance()->showTitle()?></title>
<meta name="description" content="<?php MultiLanguage_Page::instance()->showDescription()?>">
<meta name="keywords" content="<?php MultiLanguage_Page::instance()->showKeywords()?>">
```

{% endcode %}

#### Шаг 2

Для каждого элемента (структура сайта, интернет-магазин или информационные системы) и варианта языка теперь можно задать свои мета тэги и использовать свои шаблоны SEO

&#x20;<mark style="background-color:blue;">**RU**</mark>&#x20;

> **`Купить {group.name} в магазине {this.pageNumber ", страница %d"}`**

`// Купить телевизоры в магазине, страница 2`

&#x20;<mark style="background-color:blue;">**EN**</mark>&#x20;

> **`Buy {group.multiLng 'name'} in shop {this.pageNumber ", page %d"}`**

`// Buy TV in shop, page 2`

&#x20;<mark style="background-color:blue;">**RU**</mark>&#x20;

> **`Купить {item.name} в нашем магазине`**

`// Купить Телевизор LG 5000 NR в нашем магазине`

&#x20;<mark style="background-color:blue;">**EN**</mark>&#x20;

> **`Buy {item.multiLng 'name'} in our shop`**

`// Buy TV LG 5000 NR in our shop`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.morozovpimnev.ru/multilanguage/nastroika-seo-zagolovkov.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
