# Jak vytvořit vlastní štítek – g:custom\_label

Pro přidání Custom\_label štítku nejprve zvolte Export.

<figure><img src="/files/2sQFIkzu7el2N7jZ1mjt" alt=""><figcaption></figcaption></figure>

Následně přejděte na Pravidla -> Nové pravidlo

<figure><img src="/files/0GmEsxbN99cwQt0n8MKn" alt=""><figcaption></figcaption></figure>

<br>

<figure><img src="/files/9ThI1OkPj4mFOKHS1SEq" alt=""><figcaption></figcaption></figure>

Pokud chcete Custom\_label upravit, zvolte Upravit element. V podmínce zvolte jako proměnnou zvolený Custom\_label a nadefinujte úpravu dle vašich požadavků.

Pokud chcete Custom\_label vytvořit, zvolte Přidat element.

<figure><img src="/files/zzNSe4qxa95zJmjdLFmr" alt="" width="283"><figcaption></figcaption></figure>

Pojmenujte pravidlo.

<figure><img src="/files/ZfbbHDqM93JXBSX1NOhO" alt=""><figcaption></figcaption></figure>

V uvedeném příkladu se všem produktům s cenou od 9990 do 49990 Kč přidá štítek g:custom\_label\_0 s hodnotou více než 1000.

<figure><img src="/files/S6pANHr2MiJfy9rX5APg" alt=""><figcaption></figcaption></figure>

Nastavte cenový rozsah v Podmínkách pro položky a klikněte na Uložit pravidlo.

<figure><img src="/files/xDxjkhi4JAyuB5L9LUPl" alt=""><figcaption></figcaption></figure>

Do XML se propíše:

`<g:custom_label_5>100-299</g:custom_label_5>`<br>

Změnu vidíte v pravém sloupečku v náhledu upraveného XML.<br>


---

# 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://napoveda.conviu.cz/modul-uprava-dat-xml-a-csv/export-dat/jak-vytvorit-vlastni-stitek-g-custom_label.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.
