diff --git a/AGENTS.md b/AGENTS.md
index 8d27d02341..6f6b53c17f 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -307,6 +307,7 @@ The good example explains what the tool does and why it matters. The bad example
- Break complex topics into digestible sections
- Use code examples liberally – they're often clearer than prose
- End sections with "What's Next" links when appropriate
+- Put the `{{maintitle}}` and `{{description}}` directives at the very end of the page, in this order, after a blank line
## Mandatory Self-Review After Every Change
diff --git a/ai/cs/mcp-inspector.texy b/ai/cs/mcp-inspector.texy
index 355d9dca67..90a4755d4c 100644
--- a/ai/cs/mcp-inspector.texy
+++ b/ai/cs/mcp-inspector.texy
@@ -324,3 +324,5 @@ AI teď může volat `blog_get_post` jako kterýkoli vestavěný nástroj. Vyzko
{{composer: nette/mcp-inspector}}
{{repo: nette/mcp-inspector}}
+{{maintitle: Nette MCP Inspector: AI vidí přímo do vaší aplikace}}
+{{description: MCP Inspector umožní AI asistentovi podívat se přímo do vaší Nette aplikace: služby v DI kontejneru, databázové tabulky, routy a logy Tracy. Žádné hádání.}}
diff --git a/ai/cs/vibe-coding.texy b/ai/cs/vibe-coding.texy
index fac5320a42..25a3b210bb 100644
--- a/ai/cs/vibe-coding.texy
+++ b/ai/cs/vibe-coding.texy
@@ -295,4 +295,5 @@ A pamatujte: AI je váš asistent. Vývojář jste pořád vy. Vy rozhodujete, v
Hodně zdaru!
+{{maintitle: Vibe coding v PHP s Nette: prompty a osvědčené postupy}}
{{description: Praktické rady pro vibe coding v PHP s Nette: jak psát prompty, které fungují, jak využít MCP Inspector, osvědčené postupy a čeho se vyvarovat.}}
diff --git a/ai/en/agent-plugins.texy b/ai/en/agent-plugins.texy
index 9d1ac8e198..8c860d81c7 100644
--- a/ai/en/agent-plugins.texy
+++ b/ai/en/agent-plugins.texy
@@ -473,3 +473,5 @@ Privacy
The plugins collect no data. They run locally and have no servers, telemetry or analytics. See the [privacy policy |privacy-policy] for details.
{{repo: nette/agent-plugins}}
+{{maintitle: Nette Plugins for Claude Code and Codex: AI Agent Skills}}
+{{description: Give Claude Code and Codex deep knowledge of Nette. Instead of generic PHP advice, you get recommendations that follow Nette conventions.}}
diff --git a/ai/en/getting-started.texy b/ai/en/getting-started.texy
index b265d09e84..3fa8b4f4ae 100644
--- a/ai/en/getting-started.texy
+++ b/ai/en/getting-started.texy
@@ -257,4 +257,5 @@ You're now ready for AI-assisted Nette development! Here's where to go from here
- [Agent Plugins |agent-plugins] - Explore all the skills (Claude Code and Codex users)
- [Vibe Coding in Practice |vibe-coding] - Get the most out of your AI assistant
+{{maintitle: Vibe Coding with Nette: Getting Started with Claude Code}}
{{description: Set up vibe coding with Nette in about ten minutes: install Claude Code, add the Nette plugin, and connect MCP Inspector to your application.}}
diff --git a/ai/en/mcp-inspector.texy b/ai/en/mcp-inspector.texy
index c75ee4aae7..500d1fcfc2 100644
--- a/ai/en/mcp-inspector.texy
+++ b/ai/en/mcp-inspector.texy
@@ -324,3 +324,5 @@ The AI can now call `blog_get_post` like any built-in tool. Try it first from th
{{composer: nette/mcp-inspector}}
{{repo: nette/mcp-inspector}}
+{{maintitle: Nette MCP Inspector: Let AI See Inside Your Application}}
+{{description: MCP Inspector lets an AI assistant look directly into your Nette application: DI services, database tables, routes and Tracy logs, instead of guessing.}}
diff --git a/ai/en/privacy-policy.texy b/ai/en/privacy-policy.texy
index 37ca5d2c12..c7ed219f76 100644
--- a/ai/en/privacy-policy.texy
+++ b/ai/en/privacy-policy.texy
@@ -61,4 +61,5 @@ Contact
The plugins are maintained by David Grudl and the Nette Foundation. If you have a question about this policy or about the plugins, please open an issue at "github.com/nette/agent-plugins":https://github.com/nette/agent-plugins/issues.
+{{maintitle: Privacy Policy for Nette Agent Plugins}}
{{description: The Nette plugins for Claude Code and Codex collect no data. They run locally and have no servers, telemetry or analytics.}}
diff --git a/ai/en/vibe-coding.texy b/ai/en/vibe-coding.texy
index 1c7788484b..a79da50c08 100644
--- a/ai/en/vibe-coding.texy
+++ b/ai/en/vibe-coding.texy
@@ -295,4 +295,5 @@ And remember: the AI is your assistant. You're still the developer. You make the
Happy coding!
+{{maintitle: Vibe Coding in PHP with Nette: Prompts and Best Workflows}}
{{description: Practical advice for vibe coding in PHP with Nette: writing prompts that work, using MCP Inspector well, proven workflows, and mistakes to avoid.}}
diff --git a/application/cs/@home.texy b/application/cs/@home.texy
index 88228c1487..04526db5f2 100644
--- a/application/cs/@home.texy
+++ b/application/cs/@home.texy
@@ -83,3 +83,6 @@ Kompatibilita s PHP
| Nette Application 2.4 | PHP 5.6 - 8.0
Platí pro poslední patch verze.
+
+{{maintitle: Nette Application: PHP framework pro webové aplikace}}
+{{description: Jádro frameworku Nette: obousměrný router, presentery, znovupoužitelné komponenty se signály a bezpečné šablony Latte pro moderní webové aplikace.}}
diff --git a/application/cs/ajax.texy b/application/cs/ajax.texy
index 1e5f8bd9e5..5f0c89bf28 100644
--- a/application/cs/ajax.texy
+++ b/application/cs/ajax.texy
@@ -209,7 +209,7 @@ OK
{control productGrid}
nebude fungovat:
-{control productGrid $arg, $arg}
+{control productGrid, $arg, $arg}
{control productGrid:paginator}
```
@@ -263,3 +263,6 @@ Další četba
===========
- [Dynamické snippety |best-practices:dynamic-snippets]
+
+{{maintitle: AJAX a snippety v Nette: překreslení části stránky}}
+{{description: Překreslete jen to, co se změnilo, bez načtení celé stránky: snippety v šablonách Latte, AJAXové požadavky s knihovnou Naja a předávání parametrů z prohlížeče.}}
diff --git a/application/cs/bootstrapping.texy b/application/cs/bootstrapping.texy
index c40a9ea5ac..b5af5d8fd5 100644
--- a/application/cs/bootstrapping.texy
+++ b/application/cs/bootstrapping.texy
@@ -310,3 +310,6 @@ public function bootConsoleApplication(): Nette\DI\Container
return $this->configurator->createContainer();
}
```
+
+{{maintitle: Bootstrapping aplikace v Nette: od index.php po DI kontejner}}
+{{description: Jak se aplikace v Nette spouští: od index.php a třídy Configurator přes vývojářský režim, Tracy a dočasné soubory až po konfiguraci v NEON.}}
diff --git a/application/cs/components.texy b/application/cs/components.texy
index 08f8f8df35..fb4be07928 100644
--- a/application/cs/components.texy
+++ b/application/cs/components.texy
@@ -107,7 +107,7 @@ public function render(): void
Značka `{control}` umožňuje do metody `render()` předat parametry:
```latte
-{control poll $id, $message}
+{control poll, $id, $message}
```
```php .{file:PollControl.php}
@@ -136,7 +136,7 @@ Pro lepší pochopení je dobré vědět, jak se tato značka přeloží do PHP.
```latte
{control poll}
-{control poll:paginator 123, 'hello'}
+{control poll:paginator, 123, 'hello'}
```
se přeloží jako:
@@ -200,7 +200,7 @@ public function handleClick(int $x, int $y): void
Odkaz, který zavolá signál, vytvoříme obvyklým způsobem, tedy v šabloně atributem `n:href` nebo značkou `{link}`, v kódu metodou `link()`. Více v kapitole [Vytváření odkazů URL |creating-links#Odkazy na signál].
```latte
-click here
+click here
```
Signál se vždy volá na aktuálním presenteru a akci, není možné jej vyvolat na jiném presenteru nebo jiné akci.
@@ -281,13 +281,13 @@ U property doporučujeme uvádět i datový typ (např. `int`) a můžete uvést
Při vytváření odkazu lze persistentnímu parametru změnit hodnotu:
```latte
-next
+next
```
Nebo jej lze *vyresetovat*, tj. odstranit z URL. Pak bude nabývat svou výchozí hodnotu:
```latte
-reset
+reset
```
@@ -502,3 +502,6 @@ if ($this->isSignalReceiver($this, 'paging') || $this->isSignalReceiver($this, '
```
Tím je signál provedený předčasně a už se nebude znovu volat.
+
+{{maintitle: Interaktivní komponenty v Nette: signály a AJAX}}
+{{description: Formulář, datagrid nebo anketu napíšete jednou a použijete kdekoliv. Tovární metody, vykreslení, signály, AJAX, flash zprávy a persistentní parametry.}}
diff --git a/application/cs/configuration.texy b/application/cs/configuration.texy
index 84d79b50a3..1ce20ce3f3 100644
--- a/application/cs/configuration.texy
+++ b/application/cs/configuration.texy
@@ -184,3 +184,6 @@ Tyto služby se přidávají do DI kontejneru:
| `routing.router` | [api:Nette\Routing\Router] | směrovač
| `latte.latteFactory` | [api:Nette\Bridges\ApplicationLatte\LatteFactory] | továrna objektu `Latte\Engine`
| `latte.templateFactory` | [api:Nette\Application\UI\TemplateFactory] | továrna pro [`$this->template` |templates]
+
+{{maintitle: Konfigurace Nette Application: volby v NEON}}
+{{description: Konfigurace Nette Application v NEON: error presenter, mapování presenterů, šablony Latte, routování, konstanty, nastavení PHP a služby DI.}}
diff --git a/application/cs/creating-links.texy b/application/cs/creating-links.texy
index 703a1206ea..126a11240a 100644
--- a/application/cs/creating-links.texy
+++ b/application/cs/creating-links.texy
@@ -29,13 +29,13 @@ Všimněte si, že místo HTML atributu `href` jsme použili [n:atribut |latte:s
Kliknutí na odkaz je, zjednodušeně řečeno, něco jako zavolání metody `ProductPresenter::renderShow()`. A pokud má ve své signatuře parametry, můžeme ji volat s argumenty:
```latte
-detail produktu
+detail produktu
```
Je možné předávat i pojmenované parametry. Následující odkaz předává parametr `lang` s hodnotou `cs`:
```latte
-detail produktu
+detail produktu
```
Pokud metoda `ProductPresenter::renderShow()` nemá `$lang` ve své signatuře, může si hodnotu parametru zjistit pomocí `$lang = $this->getParameter('lang')` nebo z [property |presenters#Parametry požadavku].
@@ -162,7 +162,7 @@ Zároveň se přenáší i všechny parametry uvedené v signatuře metody `acti
Samozřejmě je možné parametry uvést přímo:
```latte
-refresh
+refresh
```
Funkce `isLinkCurrent()` zjišťuje, zda je cíl odkazu shodný s aktuální stránkou. Toho lze využít například v šabloně k odlišení odkazů apod.
@@ -317,3 +317,6 @@ LinkGenerator je služba, kterou si můžete nechat předat přes konstruktor a
Oproti presenterům je tu rozdíl. LinkGenerator vytváří všechny odkazy rovnou jako absolutní URL. A dále neexistuje žádný "aktuální presenter", takže nelze jako cíl uvést jen název akce `link('default')` nebo uvádět relativní cesty k modulům.
Neplatné odkazy vždy vyhazují `Nette\Application\UI\InvalidLinkException`.
+
+{{maintitle: Odkazy v Nette: šablony, presentery a LinkGenerator}}
+{{description: Odkazy na presentery, akce a signály pomocí n:href a link(), zvýraznění aktuální stránky v menu, odhalení neplatných odkazů a generování URL mimo presenter.}}
diff --git a/application/cs/directory-structure.texy b/application/cs/directory-structure.texy
index c1620c48bf..bf42818d93 100644
--- a/application/cs/directory-structure.texy
+++ b/application/cs/directory-structure.texy
@@ -524,3 +524,6 @@ application:
*: [App\Presentation, *, **Presenter]
Api: [App\Api, '', *Presenter]
```
+
+{{maintitle: Adresářová struktura projektu v Nette: jak uspořádat kód}}
+{{description: Přehledná a škálovatelná adresářová struktura projektů v Nette: kam patří presentery, šablony, model a infrastrukturní kód a jak funguje mapování presenterů.}}
diff --git a/application/cs/how-it-works.texy b/application/cs/how-it-works.texy
index 63516d0459..4a52c576b3 100644
--- a/application/cs/how-it-works.texy
+++ b/application/cs/how-it-works.texy
@@ -150,7 +150,7 @@ Když už přišla řeč na šablony, v Nette se používá šablonovací systé
V šabloně se [vytvářejí odkazy |creating-links] na další presentery a akce takto:
```latte
-detail produktu
+detail produktu
```
Prostě místo reálného URL napíšete známý pár `Presenter:action` a uvedete případné parametry. Trik je v tom `n:href`, které říká, že tento atribut zpracuje Nette. A vygeneruje:
@@ -198,3 +198,6 @@ Prošli jsme si základní principy aplikací v Nette. Zatím velmi povrchně, a
Kromě výše popsaného disponuje Nette celým arzenálem [užitečných tříd|utils:], [databázovou vrstvou|database:], atd. Zkuste si schválně jen tak proklikat dokumentaci. Nebo [blog|https://blog.nette.org]. Objevíte spoustu zajímavého.
Ať vám framework přináší spoustu radosti 💙
+
+{{maintitle: Jak fungují aplikace v Nette: od požadavku k odpovědi}}
+{{description: Základní kapitola dokumentace Nette: krok za krokem sledujete cestu webové aplikace od HTTP požadavku přes router a presenter až po vykreslení šablony.}}
diff --git a/application/cs/multiplier.texy b/application/cs/multiplier.texy
index dddd5f573a..c1553453bb 100644
--- a/application/cs/multiplier.texy
+++ b/application/cs/multiplier.texy
@@ -61,3 +61,6 @@ protected function createComponentShopForm(): Multiplier
});
}
```
+
+{{maintitle: Multiplier v Nette: dynamické vytváření komponent}}
+{{description: Potřebujete u každého produktu formulář Přidat do košíku? Multiplier vytvoří tolik samostatných komponent, kolik je třeba, takže každá položka má tu svou.}}
diff --git a/application/cs/presenters.texy b/application/cs/presenters.texy
index a867660fb6..2af57b46df 100644
--- a/application/cs/presenters.texy
+++ b/application/cs/presenters.texy
@@ -164,7 +164,7 @@ $url = $this->link('Product:show', [$id, 'lang' => 'cs']);
V šabloně se vytvářejí odkazy na další presentery a akce tímto způsobem:
```latte
-detail produktu
+detail produktu
```
Prostě místo reálného URL napíšete známý pár `Presenter:action` a uvedete případné parametry. Trik je v tom `n:href`, které říká, že tento atribut zpracuje Latte a vygeneruje reálné URL. V Nette tak vůbec nemusíte uvažovat nad URL, jen nad presentery a akcemi.
@@ -282,7 +282,7 @@ U property doporučujeme uvádět i datový typ (např. `string`) a Nette podle
Při vytváření odkazu lze parametrům hodnotu přímo nastavit:
```latte
-click
+click
```
@@ -330,13 +330,13 @@ class ProductPresenter extends Nette\Application\UI\Presenter
Při vytváření odkazu lze persistentnímu parametru změnit hodnotu:
```latte
-detail v češtině
+detail v češtině
```
Nebo jej lze *vyresetovat*, tj. odstranit z URL. Pak bude nabývat svou výchozí hodnotu:
```latte
-klikni
+klikni
```
@@ -593,3 +593,6 @@ Další četba
- [Skládání presenterů z trait |best-practices:presenter-traits]
- [Předání nastavení do presenterů |best-practices:passing-settings-to-presenters]
- [Jak se vrátit k dřívější stránce |best-practices:restore-request]
+
+{{maintitle: Presentery v Nette: životní cyklus, akce a parametry}}
+{{description: Jak presenter v Nette zpracuje požadavek, od životního cyklu a vykreslení šablony přes přesměrování a chybové stránky po JSON a persistentní parametry.}}
diff --git a/application/cs/routing.texy b/application/cs/routing.texy
index e7f69b6cb7..37a1602524 100644
--- a/application/cs/routing.texy
+++ b/application/cs/routing.texy
@@ -747,3 +747,5 @@ $url = $router->constructUrl($params, $httpRequest->getUrl());
{{composer: nette/routing}}
{{repo: nette/routing}}
{{api: https://api.nette.org/routing/}}
+{{maintitle: Routování v PHP s Nette: hezké URL a SEO}}
+{{description: Všechny URL definujete na jednom místě a kdykoliv je změníte bez zásahu do šablon. Masky rout, automatická kanonizace, vlastní router i samostatné použití.}}
diff --git a/application/cs/templates.texy b/application/cs/templates.texy
index b5ae830d67..e2bee7f9c8 100644
--- a/application/cs/templates.texy
+++ b/application/cs/templates.texy
@@ -417,3 +417,6 @@ protected function beforeRender(): void
```
Statickým textem je myšleno třeba `{_'hello'}` nebo `{translate}hello{/translate}`. Nestatické texty, jako třeba `{_$foo}`, se nadále budou překládat za běhu.
+
+{{maintitle: Šablony v Nette: jak presentery používají Latte}}
+{{description: Jak presentery v Nette pracují se šablonami Latte: hledání šablon a layoutu, proměnné, typově bezpečné šablony, odkazy, vlastní filtry a tagy, překlady.}}
diff --git a/application/cs/upgrading.texy b/application/cs/upgrading.texy
index d4b144c738..c9b57d0f6c 100644
--- a/application/cs/upgrading.texy
+++ b/application/cs/upgrading.texy
@@ -45,3 +45,6 @@ Upgrade na verzi 2.3
- routy a názvy presenterů jsou **case-sensitive**. Nette vás upozorní, pokud v názvu presenteru použijete špatnou velikost písmen; masku routy z výkonnostních důvodů nekontroluje, ověřte si ji tedy ručně.
- `Route::addStyle()` a `Route::setStyleProperty()` jsou zastaralé a nyní vyvolají `E_USER_DEPRECATED`.
- přípona šablony `.phtml` a stará syntaxe odkazů se již nepodporují.
+
+{{maintitle: Upgrade Nette Application: změny v jednotlivých verzích}}
+{{description: Co se změnilo v Nette Application 3.0, 2.4 a 2.3 a jak upravit kód: typehinty, rozhraní routeru, same-origin kontrola signálů a další.}}
diff --git a/application/de/ajax.texy b/application/de/ajax.texy
index 5fa29383e4..00e066bda7 100644
--- a/application/de/ajax.texy
+++ b/application/de/ajax.texy
@@ -209,7 +209,7 @@ OK
{control productGrid}
funktioniert nicht:
-{control productGrid $arg, $arg}
+{control productGrid, $arg, $arg}
{control productGrid:paginator}
```
diff --git a/application/de/components.texy b/application/de/components.texy
index b9b3713eee..d6a7e7f72b 100644
--- a/application/de/components.texy
+++ b/application/de/components.texy
@@ -107,7 +107,7 @@ public function render(): void
Der Tag `{control}` erlaubt es, der Methode `render()` Parameter zu übergeben:
```latte
-{control poll $id, $message}
+{control poll, $id, $message}
```
```php .{file:PollControl.php}
@@ -136,7 +136,7 @@ Zum besseren Verständnis ist es gut zu wissen, wie sich dieser Tag in PHP-Code
```latte
{control poll}
-{control poll:paginator 123, 'hello'}
+{control poll:paginator, 123, 'hello'}
```
übersetzt sich zu:
@@ -200,7 +200,7 @@ public function handleClick(int $x, int $y): void
Einen Link, der ein Signal aufruft, erstellt man auf die übliche Weise, also im Template mit dem Attribut `n:href` oder dem Tag `{link}`, im Code mit der Methode `link()`. Mehr im Kapitel [Erstellen von URL-Links |creating-links#Links auf Signale].
```latte
-hier klicken
+hier klicken
```
Ein Signal wird immer auf dem aktuellen Presenter und der aktuellen Aktion aufgerufen; es lässt sich nicht auf einem anderen Presenter oder einer anderen Aktion auslösen.
@@ -281,13 +281,13 @@ Wir empfehlen, für die Property den Datentyp anzugeben (z. B. `int`), und Sie k
Beim Erstellen eines Links lässt sich der Wert eines persistenten Parameters ändern:
```latte
-weiter
+weiter
```
Oder er lässt sich *zurücksetzen*, also aus der URL entfernen. Er nimmt dann seinen Standardwert an:
```latte
-zurücksetzen
+zurücksetzen
```
diff --git a/application/de/creating-links.texy b/application/de/creating-links.texy
index 66821107bd..efb5faf9c9 100644
--- a/application/de/creating-links.texy
+++ b/application/de/creating-links.texy
@@ -29,13 +29,13 @@ Beachten Sie, dass wir statt des HTML-Attributs `href` das [n:Attribut |latte:sy
Auf einen Link zu klicken ist, vereinfacht gesagt, so etwas wie der Aufruf der Methode `ProductPresenter::renderShow()`. Und wenn diese in ihrer Signatur Parameter hat, können wir sie mit Argumenten aufrufen:
```latte
-Produktdetail
+Produktdetail
```
Es lassen sich auch benannte Parameter übergeben. Der folgende Link übergibt den Parameter `lang` mit dem Wert `en`:
```latte
-Produktdetail
+Produktdetail
```
Hat die Methode `ProductPresenter::renderShow()` in ihrer Signatur kein `$lang`, kann sie den Wert des Parameters mit `$lang = $this->getParameter('lang')` oder aus einer [Property |presenters#Parameter des Requests] holen.
@@ -162,7 +162,7 @@ Dabei werden zugleich alle Parameter übernommen, die in der Signatur der Method
Natürlich lassen sich Parameter auch direkt angeben:
```latte
-aktualisieren
+aktualisieren
```
Die Funktion `isLinkCurrent()` prüft, ob das Ziel des Links mit der aktuellen Seite identisch ist. Das lässt sich zum Beispiel im Template nutzen, um Links optisch zu unterscheiden usw.
diff --git a/application/de/how-it-works.texy b/application/de/how-it-works.texy
index 0766651e3b..12eca8f7b7 100644
--- a/application/de/how-it-works.texy
+++ b/application/de/how-it-works.texy
@@ -150,7 +150,7 @@ Da wir gerade bei Templates sind: Nette verwendet das Templating-System [Latte |
Im Template [erstellen Sie Links |creating-links] auf andere Presenter & Aktionen so:
```latte
-Produktdetail
+Produktdetail
```
Schreiben Sie einfach das vertraute Paar `Presenter:Aktion` statt der tatsächlichen URL und ergänzen Sie eventuelle Parameter. Der Trick steckt in `n:href`, das Nette sagt, dieses Attribut zu verarbeiten. Es erzeugt dann:
diff --git a/application/de/presenters.texy b/application/de/presenters.texy
index 27a758fbbe..230239d102 100644
--- a/application/de/presenters.texy
+++ b/application/de/presenters.texy
@@ -164,7 +164,7 @@ $url = $this->link('Product:show', [$id, 'lang' => 'en']);
Im Template werden Links auf andere Presenter & Aktionen so erstellt:
```latte
-Produktdetail
+Produktdetail
```
Schreiben Sie einfach das vertraute Paar `Presenter:action` statt der tatsächlichen URL und ergänzen Sie eventuelle Parameter. Der Trick steckt in `n:href`, das Latte sagt, dieses Attribut zu verarbeiten und die echte URL zu erzeugen. In Nette müssen Sie überhaupt nicht über URLs nachdenken, sondern nur über Presenter und Aktionen.
@@ -282,7 +282,7 @@ Für die Property empfehlen wir, den Datentyp anzugeben (z. B. `string`), Nette
Beim Erstellen eines Links lässt sich der Wert des Parameters direkt setzen:
```latte
-klicken
+klicken
```
@@ -330,13 +330,13 @@ class ProductPresenter extends Nette\Application\UI\Presenter
Beim Erstellen eines Links lässt sich der Wert eines persistenten Parameters ändern:
```latte
-Detail auf Tschechisch
+Detail auf Tschechisch
```
Oder er lässt sich *zurücksetzen*, also aus der URL entfernen. Er nimmt dann seinen Standardwert an:
```latte
-klicken
+klicken
```
diff --git a/application/en/@home.texy b/application/en/@home.texy
index 6552aab1eb..b7407ce96a 100644
--- a/application/en/@home.texy
+++ b/application/en/@home.texy
@@ -83,3 +83,6 @@ PHP Compatibility
| Nette Application 2.4 | PHP 5.6 - 8.0
Valid for the latest patch versions.
+
+{{maintitle: Nette Application: PHP Framework for Web Applications}}
+{{description: The core of the Nette framework: a bidirectional router, presenters, reusable components with signals and secure Latte templates for modern web applications.}}
diff --git a/application/en/ajax.texy b/application/en/ajax.texy
index e6a0919e4a..fb4a3e0cf3 100644
--- a/application/en/ajax.texy
+++ b/application/en/ajax.texy
@@ -209,7 +209,7 @@ OK
{control productGrid}
will not work:
-{control productGrid $arg, $arg}
+{control productGrid, $arg, $arg}
{control productGrid:paginator}
```
@@ -263,3 +263,6 @@ Further Reading
===============
- [Dynamic Snippets |best-practices:dynamic-snippets]
+
+{{maintitle: AJAX and Snippets in Nette: Update Parts of a Page}}
+{{description: Redraw only what changed, without reloading the page: snippets in Latte templates, AJAX requests with the Naja library and passing parameters from the browser.}}
diff --git a/application/en/bootstrapping.texy b/application/en/bootstrapping.texy
index 1fcef2414c..84644a836d 100644
--- a/application/en/bootstrapping.texy
+++ b/application/en/bootstrapping.texy
@@ -310,3 +310,6 @@ public function bootConsoleApplication(): Nette\DI\Container
return $this->configurator->createContainer();
}
```
+
+{{maintitle: Bootstrapping a Nette App: From index.php to DI Container}}
+{{description: See how a Nette application starts, from index.php and the Configurator class through development mode, Tracy and temporary files to the NEON configuration.}}
diff --git a/application/en/components.texy b/application/en/components.texy
index 28bbf8dac7..31d270bf88 100644
--- a/application/en/components.texy
+++ b/application/en/components.texy
@@ -107,7 +107,7 @@ public function render(): void
The `{control}` tag allows passing parameters to the `render()` method:
```latte
-{control poll $id, $message}
+{control poll, $id, $message}
```
```php .{file:PollControl.php}
@@ -136,7 +136,7 @@ For a better understanding, it's good to know how this tag translates into PHP c
```latte
{control poll}
-{control poll:paginator 123, 'hello'}
+{control poll:paginator, 123, 'hello'}
```
translates to:
@@ -200,7 +200,7 @@ public function handleClick(int $x, int $y): void
A link that calls a signal is created in the usual way, i.e., in the template with the `n:href` attribute or the `{link}` tag, in the code with the `link()` method. More in the chapter [Creating URL Links |creating-links#Links to Signal].
```latte
-click here
+click here
```
A signal is always called on the current presenter and action; it is not possible to invoke it on another presenter or action.
@@ -281,13 +281,13 @@ We recommend specifying the data type for the property (e.g., `int`), and you ca
When creating a link, the value of a persistent parameter can be changed:
```latte
-next
+next
```
Or it can be *reset*, i.e., removed from the URL. It will then assume its default value:
```latte
-reset
+reset
```
@@ -502,3 +502,6 @@ if ($this->isSignalReceiver($this, 'paging') || $this->isSignalReceiver($this, '
```
This executes the signal prematurely, and it will not be called again.
+
+{{maintitle: Nette Components: Reusable UI with Signals and AJAX}}
+{{description: Write a form, data grid or poll once and reuse it on any page. Factory methods, rendering, signals, AJAX snippets, flash messages and persistent parameters.}}
diff --git a/application/en/configuration.texy b/application/en/configuration.texy
index 09fed449ef..2fe9536e5d 100644
--- a/application/en/configuration.texy
+++ b/application/en/configuration.texy
@@ -184,3 +184,6 @@ These services are added to the DI container:
| `routing.router` | [api:Nette\Routing\Router] | router
| `latte.latteFactory` | [api:Nette\Bridges\ApplicationLatte\LatteFactory] | factory for `Latte\Engine` object
| `latte.templateFactory` | [api:Nette\Application\UI\TemplateFactory] | factory for [`$this->template` |templates]
+
+{{maintitle: Nette Application Configuration: Options in NEON}}
+{{description: Configure Nette Application in NEON: the error presenter, presenter mapping, Latte templates, routing, constants, PHP settings and DI services.}}
diff --git a/application/en/creating-links.texy b/application/en/creating-links.texy
index c841e96c2b..191169cdfd 100644
--- a/application/en/creating-links.texy
+++ b/application/en/creating-links.texy
@@ -29,13 +29,13 @@ Notice that instead of the HTML attribute `href`, we used the [n:attribute |latt
Clicking on a link is, simply put, something like calling the `ProductPresenter::renderShow()` method. And if it has parameters in its signature, we can call it with arguments:
```latte
-product detail
+product detail
```
It is also possible to pass named parameters. The following link passes the parameter `lang` with the value `en`:
```latte
-product detail
+product detail
```
If the `ProductPresenter::renderShow()` method does not have `$lang` in its signature, it can retrieve the parameter's value using `$lang = $this->getParameter('lang')` or from a [property |presenters#Request Parameters].
@@ -162,7 +162,7 @@ At the same time, all parameters specified in the signature of the `actionrefresh
+refresh
```
The `isLinkCurrent()` function checks if the link target is identical to the current page. This can be used, for example, in a template to distinguish links, etc.
@@ -317,3 +317,6 @@ LinkGenerator is a service that you can have passed via the constructor and then
There is a difference compared to presenters. LinkGenerator creates all links directly as absolute URLs. Furthermore, there is no "current presenter", so it is not possible to specify only the action name `link('default')` as the target or use relative paths to modules.
Invalid links always throw `Nette\Application\UI\InvalidLinkException`.
+
+{{maintitle: Creating Links in Nette: Templates, Presenters, LinkGenerator}}
+{{description: Link to presenters, actions and signals with n:href and link(), highlight the current page in a menu, catch invalid links and generate URLs outside presenters.}}
diff --git a/application/en/directory-structure.texy b/application/en/directory-structure.texy
index 9f837dc25f..2c60db28d2 100644
--- a/application/en/directory-structure.texy
+++ b/application/en/directory-structure.texy
@@ -524,3 +524,6 @@ application:
*: [App\Presentation, *, **Presenter]
Api: [App\Api, '', *Presenter]
```
+
+{{maintitle: Nette Directory Structure: Organize Your PHP Project}}
+{{description: A clear, scalable structure for Nette projects: where presenters, templates, the model and infrastructure code belong, and how presenter mapping works.}}
diff --git a/application/en/how-it-works.texy b/application/en/how-it-works.texy
index 0f2a627fdc..0445eed8ac 100644
--- a/application/en/how-it-works.texy
+++ b/application/en/how-it-works.texy
@@ -150,7 +150,7 @@ Speaking of templates, Nette uses the [Latte |latte:] templating system. That's
In the template, you [create links |creating-links] to other presenters & actions like this:
```latte
-product detail
+product detail
```
Simply write the familiar `Presenter:action` pair instead of the actual URL and include any necessary parameters. The trick lies in `n:href`, which tells Nette to process this attribute. It will then generate:
@@ -198,3 +198,6 @@ We've covered the fundamental principles of Nette applications. While it's been
In addition to what's described above, Nette offers a whole arsenal of [useful classes|utils:], a [database layer|database:], etc. Try clicking through the documentation. Or visit the [blog|https://blog.nette.org]. You'll discover many interesting things.
May the framework bring you much joy 💙
+
+{{maintitle: How Nette Applications Work: From Request to Response}}
+{{description: The foundational chapter of the Nette docs: follow a web application step by step from the HTTP request through router and presenter to the rendered template.}}
diff --git a/application/en/multiplier.texy b/application/en/multiplier.texy
index 3f8e6dcbac..d459ebda66 100644
--- a/application/en/multiplier.texy
+++ b/application/en/multiplier.texy
@@ -61,3 +61,6 @@ protected function createComponentShopForm(): Multiplier
});
}
```
+
+{{maintitle: Nette Multiplier: Create Components Dynamically}}
+{{description: Need an Add to Cart form for every product? Multiplier creates as many independent components as you need, so each list item gets its own form or control.}}
diff --git a/application/en/presenters.texy b/application/en/presenters.texy
index 15e69e8988..c331db5633 100644
--- a/application/en/presenters.texy
+++ b/application/en/presenters.texy
@@ -164,7 +164,7 @@ $url = $this->link('Product:show', [$id, 'lang' => 'en']);
In the template, links to other presenters & actions are created like this:
```latte
-product detail
+product detail
```
Simply write the familiar `Presenter:action` pair instead of the actual URL and include any necessary parameters. The trick lies in `n:href`, which tells Latte to process this attribute and generate the real URL. In Nette, you don't need to think about URLs at all, just about presenters and actions.
@@ -282,7 +282,7 @@ For the property, we recommend specifying the data type (e.g., `string`), and Ne
When creating a link, you can set the parameter's value directly:
```latte
-click
+click
```
@@ -330,13 +330,13 @@ class ProductPresenter extends Nette\Application\UI\Presenter
When creating a link, the value of a persistent parameter can be changed:
```latte
-detail in Czech
+detail in Czech
```
Alternatively, it can be *reset*, i.e., removed from the URL. It will then assume its default value:
```latte
-click
+click
```
@@ -593,3 +593,6 @@ Further Reading
- [Composing presenters from traits |best-practices:presenter-traits]
- [Passing settings to presenters |best-practices:passing-settings-to-presenters]
- [How to Return to a Previous Page |best-practices:restore-request]
+
+{{maintitle: Nette Presenters: Life Cycle, Actions and Parameters}}
+{{description: How a presenter handles a request in Nette, from its life cycle and template rendering to redirects, error pages, JSON responses and persistent parameters.}}
diff --git a/application/en/routing.texy b/application/en/routing.texy
index 4c6c32aa86..fa2b148882 100644
--- a/application/en/routing.texy
+++ b/application/en/routing.texy
@@ -747,3 +747,5 @@ $url = $router->constructUrl($params, $httpRequest->getUrl());
{{composer: nette/routing}}
{{repo: nette/routing}}
{{api: https://api.nette.org/routing/}}
+{{maintitle: PHP Routing with Nette Router: Clean URLs and SEO}}
+{{description: Define all URLs in one place and change them anytime without touching templates. Route masks, automatic canonicalization, custom routers and standalone use.}}
diff --git a/application/en/templates.texy b/application/en/templates.texy
index 8466900e39..e51a220d1d 100644
--- a/application/en/templates.texy
+++ b/application/en/templates.texy
@@ -417,3 +417,6 @@ protected function beforeRender(): void
```
Static text means, for example, `{_'hello'}` or `{translate}hello{/translate}`. Non-static texts, like `{_$foo}`, will continue to be translated at runtime.
+
+{{maintitle: Nette Templates: Using Latte in Presenters}}
+{{description: How Nette presenters work with Latte templates: template and layout lookup, variables, type-safe templates, links, custom filters and tags, and translations.}}
diff --git a/application/en/upgrading.texy b/application/en/upgrading.texy
index f95527093f..ae8b8e8a91 100644
--- a/application/en/upgrading.texy
+++ b/application/en/upgrading.texy
@@ -45,3 +45,6 @@ Upgrading to Version 2.3
- routes and presenter names are **case-sensitive**. Nette warns you if you use the wrong case in a presenter name; for performance reasons the Route mask is not checked, so verify it manually.
- `Route::addStyle()` and `Route::setStyleProperty()` are deprecated and now trigger `E_USER_DEPRECATED`.
- the template extension `.phtml` and the old link syntax are no longer supported.
+
+{{maintitle: Upgrading Nette Application: What Changed in Each Version}}
+{{description: What changed in Nette Application 3.0, 2.4 and 2.3, and how to update your code: type hints, the router interface, same-origin signals and more.}}
diff --git a/application/es/ajax.texy b/application/es/ajax.texy
index e7eb69f6cd..4f526c7836 100644
--- a/application/es/ajax.texy
+++ b/application/es/ajax.texy
@@ -209,7 +209,7 @@ OK
{control productGrid}
will not work:
-{control productGrid $arg, $arg}
+{control productGrid, $arg, $arg}
{control productGrid:paginator}
```
diff --git a/application/es/components.texy b/application/es/components.texy
index a768929b2d..426d72ee2c 100644
--- a/application/es/components.texy
+++ b/application/es/components.texy
@@ -107,7 +107,7 @@ public function render(): void
La etiqueta `{control}` permite pasar parámetros al método `render()`:
```latte
-{control poll $id, $message}
+{control poll, $id, $message}
```
```php .{file:PollControl.php}
@@ -136,7 +136,7 @@ Para entenderlo mejor, conviene saber cómo se traduce esta etiqueta a código P
```latte
{control poll}
-{control poll:paginator 123, 'hello'}
+{control poll:paginator, 123, 'hello'}
```
se traduce a:
@@ -200,7 +200,7 @@ public function handleClick(int $x, int $y): void
Un enlace que llama a una señal se crea de la forma habitual, es decir, en la plantilla con el atributo `n:href` o la etiqueta `{link}`, y en el código con el método `link()`. Más en el capítulo [Creación de enlaces URL |creating-links#Enlaces a una señal].
```latte
-click here
+click here
```
Una señal se llama siempre sobre el presenter y la acción actuales; no es posible invocarla sobre otro presenter u otra acción.
@@ -281,13 +281,13 @@ Recomendamos indicar el tipo de dato de la propiedad (p. ej. `int`), y también
Al crear un enlace se puede cambiar el valor de un parámetro persistente:
```latte
-next
+next
```
O se puede *resetear*, es decir, eliminar de la URL. Entonces adoptará su valor por defecto:
```latte
-reset
+reset
```
diff --git a/application/es/creating-links.texy b/application/es/creating-links.texy
index 11815e20ca..17bb7234b1 100644
--- a/application/es/creating-links.texy
+++ b/application/es/creating-links.texy
@@ -29,13 +29,13 @@ Fíjese en que, en lugar del atributo HTML `href`, hemos usado el [n:atributo |l
Pulsar un enlace es, dicho de forma sencilla, algo así como llamar al método `ProductPresenter::renderShow()`. Y si tiene parámetros en su firma, podemos llamarlo con argumentos:
```latte
-product detail
+product detail
```
También es posible pasar parámetros nombrados. El siguiente enlace pasa el parámetro `lang` con el valor `en`:
```latte
-product detail
+product detail
```
Si el método `ProductPresenter::renderShow()` no tiene `$lang` en su firma, puede obtener el valor del parámetro con `$lang = $this->getParameter('lang')` o desde una [propiedad |presenters#Parámetros de la petición].
@@ -162,7 +162,7 @@ Al mismo tiempo se transfieren todos los parámetros indicados en la firma del m
Por supuesto, es posible indicar los parámetros directamente:
```latte
-refresh
+refresh
```
La función `isLinkCurrent()` comprueba si el destino del enlace es idéntico a la página actual. Esto se puede usar, por ejemplo, en una plantilla para distinguir los enlaces, etc.
diff --git a/application/es/how-it-works.texy b/application/es/how-it-works.texy
index f09f7e4a0f..09a378001d 100644
--- a/application/es/how-it-works.texy
+++ b/application/es/how-it-works.texy
@@ -150,7 +150,7 @@ Puesto que hablamos de plantillas, Nette usa el sistema de plantillas [Latte |la
En la plantilla, los [enlaces |creating-links] a otros presenters y acciones se crean así:
```latte
-product detail
+product detail
```
Basta con escribir la conocida pareja `Presenter:acción` en lugar de la URL real e incluir los parámetros necesarios. El truco está en `n:href`, que le dice a Nette que procese ese atributo. Generará entonces:
diff --git a/application/es/presenters.texy b/application/es/presenters.texy
index e714797364..da45ae7a80 100644
--- a/application/es/presenters.texy
+++ b/application/es/presenters.texy
@@ -164,7 +164,7 @@ $url = $this->link('Product:show', [$id, 'lang' => 'en']);
En la plantilla, los enlaces a otros presenters y acciones se crean así:
```latte
-product detail
+product detail
```
Simplemente escriba en lugar de la URL real el conocido par `Presenter:action` e indique los parámetros que hagan falta. El truco está en `n:href`, que le dice a Latte que procese este atributo y genere la URL real. En Nette no tiene que pensar en absoluto en las URL, solo en los presenters y las acciones.
@@ -282,7 +282,7 @@ Para la propiedad recomendamos indicar el tipo de dato (p. ej. `string`) y Nette
Al crear un enlace puede establecer directamente el valor del parámetro:
```latte
-click
+click
```
@@ -330,13 +330,13 @@ class ProductPresenter extends Nette\Application\UI\Presenter
Al crear un enlace se puede cambiar el valor de un parámetro persistente:
```latte
-detail in Czech
+detail in Czech
```
O se puede *resetear*, es decir, eliminar de la URL. Entonces adoptará su valor por defecto:
```latte
-click
+click
```
diff --git a/application/fr/ajax.texy b/application/fr/ajax.texy
index 7abb4466fa..bca4d9b42a 100644
--- a/application/fr/ajax.texy
+++ b/application/fr/ajax.texy
@@ -209,7 +209,7 @@ OK
{control productGrid}
ne fonctionnera pas :
-{control productGrid $arg, $arg}
+{control productGrid, $arg, $arg}
{control productGrid:paginator}
```
diff --git a/application/fr/components.texy b/application/fr/components.texy
index 561d497835..3435eed77d 100644
--- a/application/fr/components.texy
+++ b/application/fr/components.texy
@@ -107,7 +107,7 @@ public function render(): void
La balise `{control}` permet de passer des paramètres à la méthode `render()` :
```latte
-{control poll $id, $message}
+{control poll, $id, $message}
```
```php .{file:PollControl.php}
@@ -136,7 +136,7 @@ Pour une meilleure compréhension, il est bon de savoir comment cette balise est
```latte
{control poll}
-{control poll:paginator 123, 'hello'}
+{control poll:paginator, 123, 'hello'}
```
se traduit par :
@@ -200,7 +200,7 @@ public function handleClick(int $x, int $y): void
Nous créons un lien qui appelle un signal de la manière habituelle, c'est-à-dire dans le template avec l'attribut `n:href` ou la balise `{link}`, dans le code avec la méthode `link()`. Plus d'informations dans le chapitre [Création de liens URL |creating-links#Liens vers un signal].
```latte
-cliquez ici
+cliquez ici
```
Un signal est toujours appelé sur le presenter et l'action actuels ; il n'est pas possible de l'appeler sur un autre presenter ou une autre action.
@@ -281,13 +281,13 @@ Nous recommandons d'indiquer également le type de données pour la propriété
Lors de la création d'un lien, la valeur du paramètre persistant peut être modifiée :
```latte
-suivant
+suivant
```
Ou il peut être *réinitialisé*, c'est-à-dire supprimé de l'URL. Il prendra alors sa valeur par défaut :
```latte
-réinitialiser
+réinitialiser
```
diff --git a/application/fr/creating-links.texy b/application/fr/creating-links.texy
index 1df0b3cecb..26f7af2fcd 100644
--- a/application/fr/creating-links.texy
+++ b/application/fr/creating-links.texy
@@ -29,13 +29,13 @@ Notez qu'au lieu de l'attribut HTML `href`, nous avons utilisé un [n:attribut |
Cliquer sur le lien est, pour simplifier, quelque chose comme appeler la méthode `ProductPresenter::renderShow()`. Et si elle a des paramètres dans sa signature, nous pouvons l'appeler avec des arguments :
```latte
-détail du produit
+détail du produit
```
Il est également possible de passer des paramètres nommés. Le lien suivant passe le paramètre `lang` avec la valeur `cs` :
```latte
-détail du produit
+détail du produit
```
Si la méthode `ProductPresenter::renderShow()` n'a pas `$lang` dans sa signature, elle peut récupérer la valeur du paramètre en utilisant `$lang = $this->getParameter('lang')` ou depuis une [propriété |presenters#Paramètres de la requête].
@@ -44,7 +44,7 @@ Si les paramètres sont stockés dans un tableau, ils peuvent être développés
```latte
{var $args = [$product->id, lang => cs]}
-détail du produit
+détail du produit
```
Les liens transmettent également automatiquement les [paramètres persistants |presenters#Paramètres persistants].
@@ -162,7 +162,7 @@ En même temps, tous les paramètres spécifiés dans la signature de la méthod
Bien sûr, il est possible de spécifier les paramètres directement :
```latte
-rafraîchir
+rafraîchir
```
La fonction `isLinkCurrent()` vérifie si la cible du lien est identique à la page actuelle. Cela peut être utilisé, par exemple, dans un template pour distinguer les liens, etc.
diff --git a/application/fr/how-it-works.texy b/application/fr/how-it-works.texy
index 78d5411595..579b3e71fb 100644
--- a/application/fr/how-it-works.texy
+++ b/application/fr/how-it-works.texy
@@ -150,7 +150,7 @@ Puisque nous parlons de templates, Nette utilise le système de templates [Latte
Dans le template, des [liens |creating-links] sont créés vers d'autres presenters & actions comme ceci :
```latte
-détail du produit
+détail du produit
```
Au lieu d'une URL réelle, écrivez simplement la paire connue `Presenter:action` et spécifiez d'éventuels paramètres. L'astuce réside dans `n:href`, qui indique que cet attribut sera traité par Nette. Et il générera :
diff --git a/application/fr/presenters.texy b/application/fr/presenters.texy
index a4c22cce50..e479751763 100644
--- a/application/fr/presenters.texy
+++ b/application/fr/presenters.texy
@@ -164,7 +164,7 @@ $url = $this->link('Product:show', [$id, 'lang' => 'cs']);
Dans le template, les liens vers d'autres presenters & actions sont créés de cette manière :
```latte
-détail du produit
+détail du produit
```
Au lieu d'une URL réelle, écrivez simplement la paire connue `Presenter:action` et spécifiez d'éventuels paramètres. L'astuce réside dans `n:href`, qui indique que cet attribut sera traité par Latte et générera une URL réelle. Dans Nette, vous n'avez donc pas du tout à penser aux URL, seulement aux presenters et aux actions.
@@ -282,7 +282,7 @@ Nous recommandons d'indiquer également le type de données pour la propriété
Lors de la création d'un lien, la valeur des paramètres peut être définie directement :
```latte
-cliquer
+cliquer
```
@@ -330,13 +330,13 @@ class ProductPresenter extends Nette\Application\UI\Presenter
Lors de la création d'un lien, la valeur du paramètre persistant peut être modifiée :
```latte
-détail en tchèque
+détail en tchèque
```
Ou il peut être *réinitialisé*, c'est-à-dire supprimé de l'URL. Il prendra alors sa valeur par défaut :
```latte
-cliquer
+cliquer
```
diff --git a/application/it/ajax.texy b/application/it/ajax.texy
index 0968c573d6..624bfe0181 100644
--- a/application/it/ajax.texy
+++ b/application/it/ajax.texy
@@ -209,7 +209,7 @@ OK
{control productGrid}
non funzionerà:
-{control productGrid $arg, $arg}
+{control productGrid, $arg, $arg}
{control productGrid:paginator}
```
diff --git a/application/it/components.texy b/application/it/components.texy
index fe52021058..37413b7604 100644
--- a/application/it/components.texy
+++ b/application/it/components.texy
@@ -107,7 +107,7 @@ public function render(): void
Il tag `{control}` permette di passare parametri al metodo `render()`:
```latte
-{control poll $id, $message}
+{control poll, $id, $message}
```
```php .{file:PollControl.php}
@@ -136,7 +136,7 @@ Per capire meglio è utile sapere come questo tag si traduce in codice PHP.
```latte
{control poll}
-{control poll:paginator 123, 'hello'}
+{control poll:paginator, 123, 'hello'}
```
si traduce in:
@@ -200,7 +200,7 @@ public function handleClick(int $x, int $y): void
Un link che chiama un segnale si crea nel modo consueto, cioè nel template con l'attributo `n:href` o con il tag `{link}`, nel codice con il metodo `link()`. Maggiori informazioni nel capitolo [Creazione di link URL |creating-links#Link a un segnale].
```latte
-clicca qui
+clicca qui
```
Un segnale viene sempre chiamato sul presenter e sull'azione correnti; non è possibile richiamarlo su un altro presenter o su un'altra azione.
@@ -281,13 +281,13 @@ Consigliamo di indicare il tipo di dato della proprietà (per esempio `int`) e p
Quando si crea un link, il valore di un parametro persistente si può cambiare:
```latte
-successiva
+successiva
```
Oppure lo si può *azzerare*, cioè rimuovere dall'URL. Assumerà allora il proprio valore predefinito:
```latte
-azzera
+azzera
```
diff --git a/application/it/creating-links.texy b/application/it/creating-links.texy
index 9068de2e9f..b641e316d7 100644
--- a/application/it/creating-links.texy
+++ b/application/it/creating-links.texy
@@ -29,13 +29,13 @@ Notate che al posto dell'attributo HTML `href` abbiamo usato l'[n:attributo |lat
Cliccare su un link è, detta semplicemente, un po' come chiamare il metodo `ProductPresenter::renderShow()`. E se questo ha dei parametri nella propria firma, possiamo chiamarlo con degli argomenti:
```latte
-dettaglio del prodotto
+dettaglio del prodotto
```
È possibile passare anche parametri nominali. Il link seguente passa il parametro `lang` con il valore `en`:
```latte
-dettaglio del prodotto
+dettaglio del prodotto
```
Se il metodo `ProductPresenter::renderShow()` non ha `$lang` nella propria firma, può ottenere il valore del parametro con `$lang = $this->getParameter('lang')` oppure da una [proprietà |presenters#Parametri della richiesta].
@@ -162,7 +162,7 @@ Allo stesso tempo vengono trasferiti tutti i parametri indicati nella firma del
Naturalmente è possibile indicare i parametri direttamente:
```latte
-aggiorna
+aggiorna
```
La funzione `isLinkCurrent()` controlla se la destinazione del link coincide con la pagina corrente. Si può usare per esempio in un template per distinguere i link e simili.
diff --git a/application/it/how-it-works.texy b/application/it/how-it-works.texy
index faf548f9db..5539de6df3 100644
--- a/application/it/how-it-works.texy
+++ b/application/it/how-it-works.texy
@@ -150,7 +150,7 @@ A proposito di template, Nette usa il sistema di template [Latte |latte:]. Ecco
Nel template [create i link |creating-links] verso altri presenter e azioni così:
```latte
-dettaglio del prodotto
+dettaglio del prodotto
```
Basta scrivere la familiare coppia `Presenter:azione` al posto dell'URL vero e proprio e aggiungere gli eventuali parametri necessari. Il trucco sta in `n:href`, che dice a Nette di elaborare questo attributo. Verrà allora generato:
diff --git a/application/it/presenters.texy b/application/it/presenters.texy
index 072276889b..b735eb3ca6 100644
--- a/application/it/presenters.texy
+++ b/application/it/presenters.texy
@@ -164,7 +164,7 @@ $url = $this->link('Product:show', [$id, 'lang' => 'en']);
Nel template i link verso altri presenter e azioni si creano così:
```latte
-dettaglio del prodotto
+dettaglio del prodotto
```
Basta scrivere la familiare coppia `Presenter:azione` al posto dell'URL vero e proprio e aggiungere gli eventuali parametri necessari. Il trucco sta in `n:href`, che dice a Latte di elaborare questo attributo e di generare l'URL reale. In Nette non dovete pensare affatto agli URL, solo ai presenter e alle azioni.
@@ -282,7 +282,7 @@ Per la proprietà consigliamo di indicare il tipo di dato (per esempio `string`)
Quando create un link potete impostare direttamente il valore del parametro:
```latte
-clicca
+clicca
```
@@ -330,13 +330,13 @@ class ProductPresenter extends Nette\Application\UI\Presenter
Quando si crea un link, il valore di un parametro persistente si può cambiare:
```latte
-dettaglio in ceco
+dettaglio in ceco
```
In alternativa lo si può *azzerare*, cioè rimuovere dall'URL. Assumerà allora il proprio valore predefinito:
```latte
-clicca
+clicca
```
diff --git a/application/ja/ajax.texy b/application/ja/ajax.texy
index 473d163c99..41c5fba15d 100644
--- a/application/ja/ajax.texy
+++ b/application/ja/ajax.texy
@@ -209,7 +209,7 @@ OK
{control productGrid}
動きません:
-{control productGrid $arg, $arg}
+{control productGrid, $arg, $arg}
{control productGrid:paginator}
```
diff --git a/application/ja/components.texy b/application/ja/components.texy
index faf42836b1..d734c1fedd 100644
--- a/application/ja/components.texy
+++ b/application/ja/components.texy
@@ -107,7 +107,7 @@ public function render(): void
`{control}` タグは `render()` メソッドにパラメータを渡せます。
```latte
-{control poll $id, $message}
+{control poll, $id, $message}
```
```php .{file:PollControl.php}
@@ -136,7 +136,7 @@ public function renderPaginator(): void
```latte
{control poll}
-{control poll:paginator 123, 'hello'}
+{control poll:paginator, 123, 'hello'}
```
は次に変換されます。
@@ -200,7 +200,7 @@ public function handleClick(int $x, int $y): void
シグナルを呼ぶリンクはいつもどおりに作ります。つまりテンプレートでは `n:href` 属性か `{link}` タグ、コードでは `link()` メソッドです。詳しくは [URL リンクの作成 |creating-links#シグナルへのリンク]の章をご覧ください。
```latte
-ここをクリック
+ここをクリック
```
シグナルは常に現在のプレゼンターとアクションで呼ばれます。別のプレゼンターやアクションで呼ぶことはできません。
@@ -281,13 +281,13 @@ class PaginatingControl extends Control
リンクを作るとき、永続パラメータの値は変えられます。
```latte
-次へ
+次へ
```
あるいは*リセット*して URL から取り除けます。その場合は既定値になります。
```latte
-リセット
+リセット
```
diff --git a/application/ja/creating-links.texy b/application/ja/creating-links.texy
index d08068f318..283a57f846 100644
--- a/application/ja/creating-links.texy
+++ b/application/ja/creating-links.texy
@@ -29,13 +29,13 @@ HTML の属性 `href` の代わりに [n:属性 |latte:syntax#n:属性]の `n:hr
リンクをクリックすることは、簡単にいえば `ProductPresenter::renderShow()` メソッドを呼ぶようなものです。そしてそのシグネチャにパラメータがあれば、引数を付けて呼べます。
```latte
-商品の詳細
+商品の詳細
```
名前付きパラメータも渡せます。次のリンクは、値 `en` を持つパラメータ `lang` を渡します。
```latte
-商品の詳細
+商品の詳細
```
`ProductPresenter::renderShow()` メソッドのシグネチャに `$lang` がなければ、`$lang = $this->getParameter('lang')` か[プロパティ |presenters#リクエストのパラメータ]でその値を取得できます。
@@ -162,7 +162,7 @@ $this->link('Home:default', ['#' => $fragment]);
もちろん、パラメータを直接指定することもできます。
```latte
-更新
+更新
```
`isLinkCurrent()` 関数は、リンクの行き先が現在のページと同じかどうかを調べます。たとえばテンプレートでリンクを見分けるのに使えます。
diff --git a/application/ja/how-it-works.texy b/application/ja/how-it-works.texy
index d7d78af3f6..bd9fcbaf5e 100644
--- a/application/ja/how-it-works.texy
+++ b/application/ja/how-it-works.texy
@@ -150,7 +150,7 @@ class ProductPresenter extends Nette\Application\UI\Presenter
テンプレートでは、ほかのプレゼンターやアクションへの[リンクを作ります |creating-links]。次のようにです。
```latte
-商品の詳細
+商品の詳細
```
実際の URL の代わりに、見慣れた `Presenter:action` の組を書き、必要なパラメータを添えるだけです。仕掛けは `n:href` にあり、これがこの属性を処理するよう Nette に伝えます。すると次が生成されます。
diff --git a/application/ja/presenters.texy b/application/ja/presenters.texy
index 61138b6df4..f5f32a61aa 100644
--- a/application/ja/presenters.texy
+++ b/application/ja/presenters.texy
@@ -164,7 +164,7 @@ $url = $this->link('Product:show', [$id, 'lang' => 'en']);
テンプレートでは、ほかのプレゼンターやアクションへのリンクを次のように作ります。
```latte
-商品の詳細
+商品の詳細
```
実際の URL の代わりに、見慣れた `Presenter:action` の組を書き、必要なパラメータを添えるだけです。仕掛けは `n:href` にあり、これがこの属性を処理して本当の URL を生成するよう Latte に伝えます。Nette では URL のことを考える必要はまったくなく、プレゼンターとアクションのことだけを考えればよいのです。
@@ -282,7 +282,7 @@ class HomePresenter extends Nette\Application\UI\Presenter
リンクを作るとき、パラメータの値を直接設定できます。
```latte
-クリック
+クリック
```
@@ -330,13 +330,13 @@ class ProductPresenter extends Nette\Application\UI\Presenter
リンクを作るとき、永続パラメータの値は変えられます。
```latte
-チェコ語での詳細
+チェコ語での詳細
```
あるいは*リセット*して URL から取り除けます。その場合は既定値になります。
```latte
-クリック
+クリック
```
diff --git a/application/pl/ajax.texy b/application/pl/ajax.texy
index b7e7b78f9e..ba5e987831 100644
--- a/application/pl/ajax.texy
+++ b/application/pl/ajax.texy
@@ -209,7 +209,7 @@ OK
{control productGrid}
nie zadziała:
-{control productGrid $arg, $arg}
+{control productGrid, $arg, $arg}
{control productGrid:paginator}
```
diff --git a/application/pl/components.texy b/application/pl/components.texy
index 189db24a74..ee22bce2e1 100644
--- a/application/pl/components.texy
+++ b/application/pl/components.texy
@@ -107,7 +107,7 @@ public function render(): void
Tag `{control}` pozwala przekazać metodzie `render()` parametry:
```latte
-{control poll $id, $message}
+{control poll, $id, $message}
```
```php .{file:PollControl.php}
@@ -136,7 +136,7 @@ Dla lepszego zrozumienia warto wiedzieć, jak ten tag przekłada się na kod PHP
```latte
{control poll}
-{control poll:paginator 123, 'hello'}
+{control poll:paginator, 123, 'hello'}
```
przekłada się na:
@@ -200,7 +200,7 @@ public function handleClick(int $x, int $y): void
Odnośnik wywołujący sygnał tworzy się w zwykły sposób, czyli w szablonie atrybutem `n:href` albo tagiem `{link}`, a w kodzie metodą `link()`. Więcej w rozdziale [Tworzenie odnośników URL |creating-links#Odnośniki do sygnału].
```latte
-kliknij tutaj
+kliknij tutaj
```
Sygnał wywoływany jest zawsze na bieżącym presenterze i akcji; nie da się wywołać go na innym presenterze albo innej akcji.
@@ -281,13 +281,13 @@ Zalecamy podanie typu danych właściwości (np. `int`), możesz też podać war
Przy tworzeniu odnośnika wartość parametru trwałego można zmienić:
```latte
-dalej
+dalej
```
Albo *zresetować*, czyli usunąć z URL. Przyjmie wtedy swoją wartość domyślną:
```latte
-resetuj
+resetuj
```
diff --git a/application/pl/creating-links.texy b/application/pl/creating-links.texy
index b8abbf5d05..59d9c3653f 100644
--- a/application/pl/creating-links.texy
+++ b/application/pl/creating-links.texy
@@ -29,13 +29,13 @@ Zwróć uwagę, że zamiast atrybutu HTML `href` użyliśmy [n:atrybutu |latte:s
Kliknięcie w odnośnik to, mówiąc prosto, coś w rodzaju wywołania metody `ProductPresenter::renderShow()`. A jeśli ma ona w sygnaturze parametry, możemy wywołać ją z argumentami:
```latte
-szczegóły produktu
+szczegóły produktu
```
Można też przekazywać parametry nazwane. Poniższy odnośnik przekazuje parametr `lang` o wartości `en`:
```latte
-szczegóły produktu
+szczegóły produktu
```
Jeśli metoda `ProductPresenter::renderShow()` nie ma w sygnaturze `$lang`, może pobrać wartość parametru przez `$lang = $this->getParameter('lang')` albo z [właściwości |presenters#Parametry żądania].
@@ -162,7 +162,7 @@ Jednocześnie przekazywane są wszystkie parametry podane w sygnaturze metody `a
Oczywiście parametry można podać bezpośrednio:
```latte
-odśwież
+odśwież
```
Funkcja `isLinkCurrent()` sprawdza, czy cel odnośnika jest identyczny z bieżącą stroną. Można tego użyć na przykład w szablonie do odróżniania odnośników itd.
diff --git a/application/pl/how-it-works.texy b/application/pl/how-it-works.texy
index 08541766b4..f8d24ef605 100644
--- a/application/pl/how-it-works.texy
+++ b/application/pl/how-it-works.texy
@@ -150,7 +150,7 @@ Skoro mowa o szablonach, Nette używa systemu szablonów [Latte |latte:]. Dlateg
W szablonie [tworzysz odnośniki |creating-links] do innych presenterów i akcji tak:
```latte
-szczegóły produktu
+szczegóły produktu
```
Zamiast prawdziwego URL po prostu zapisujesz znajomą parę `Presenter:akcja` i dodajesz ewentualne parametry. Sztuczka tkwi w `n:href`, które mówi Nette, aby ten atrybut przetworzyło. Wygeneruje wtedy:
diff --git a/application/pl/presenters.texy b/application/pl/presenters.texy
index ac3ce3dd2d..7caffa063b 100644
--- a/application/pl/presenters.texy
+++ b/application/pl/presenters.texy
@@ -164,7 +164,7 @@ $url = $this->link('Product:show', [$id, 'lang' => 'en']);
W szablonie odnośniki do innych presenterów i akcji tworzy się tak:
```latte
-szczegóły produktu
+szczegóły produktu
```
Zamiast prawdziwego URL po prostu zapisujesz znajomą parę `Presenter:akcja` i dodajesz ewentualne parametry. Sztuczka tkwi w `n:href`, które mówi Latte, aby ten atrybut przetworzyło i wygenerowało prawdziwy URL. W Nette w ogóle nie musisz myśleć o URL, tylko o presenterach i akcjach.
@@ -282,7 +282,7 @@ Dla właściwości zalecamy podanie typu danych (np. `string`), a Nette automaty
Przy tworzeniu odnośnika możesz ustawić wartość parametru bezpośrednio:
```latte
-kliknij
+kliknij
```
@@ -330,13 +330,13 @@ class ProductPresenter extends Nette\Application\UI\Presenter
Przy tworzeniu odnośnika wartość parametru trwałego można zmienić:
```latte
-szczegóły po czesku
+szczegóły po czesku
```
Albo *zresetować*, czyli usunąć z URL. Przyjmie wtedy swoją wartość domyślną:
```latte
-kliknij
+kliknij
```
diff --git a/application/ru/ajax.texy b/application/ru/ajax.texy
index a61b4aa5a7..9aedad772c 100644
--- a/application/ru/ajax.texy
+++ b/application/ru/ajax.texy
@@ -209,7 +209,7 @@ OK
{control productGrid}
работать не будет:
-{control productGrid $arg, $arg}
+{control productGrid, $arg, $arg}
{control productGrid:paginator}
```
diff --git a/application/ru/components.texy b/application/ru/components.texy
index a1942e5f9e..66e9d69bb7 100644
--- a/application/ru/components.texy
+++ b/application/ru/components.texy
@@ -107,7 +107,7 @@ public function render(): void
Тег `{control}` позволяет передать параметры в метод `render()`:
```latte
-{control poll $id, $message}
+{control poll, $id, $message}
```
```php .{file:PollControl.php}
@@ -136,7 +136,7 @@ public function renderPaginator(): void
```latte
{control poll}
-{control poll:paginator 123, 'hello'}
+{control poll:paginator, 123, 'hello'}
```
превращается в:
@@ -200,7 +200,7 @@ public function handleClick(int $x, int $y): void
Ссылка, вызывающая сигнал, создаётся обычным способом, то есть в шаблоне атрибутом `n:href` или тегом `{link}`, а в коде методом `link()`. Подробнее в главе [Создание URL-ссылок |creating-links#Ссылки на сигнал].
```latte
-click here
+click here
```
Сигнал всегда вызывается на текущем презентере и действии; вызвать его на другом презентере или действии нельзя.
@@ -281,13 +281,13 @@ class PaginatingControl extends Control
При создании ссылки значение постоянного параметра можно изменить:
```latte
-next
+next
```
Или его можно *сбросить*, то есть убрать из URL. Тогда он примет значение по умолчанию:
```latte
-reset
+reset
```
diff --git a/application/ru/creating-links.texy b/application/ru/creating-links.texy
index 2643963f02..330e2fc49e 100644
--- a/application/ru/creating-links.texy
+++ b/application/ru/creating-links.texy
@@ -29,13 +29,13 @@
Щелчок по ссылке, попросту говоря, похож на вызов метода `ProductPresenter::renderShow()`. А если у него есть параметры в сигнатуре, мы можем вызвать его с аргументами:
```latte
-product detail
+product detail
```
Можно передавать и именованные параметры. Следующая ссылка передаёт параметр `lang` со значением `en`:
```latte
-product detail
+product detail
```
Если у метода `ProductPresenter::renderShow()` нет `$lang` в сигнатуре, он может получить значение параметра через `$lang = $this->getParameter('lang')` или из [свойства |presenters#Параметры запроса].
@@ -162,7 +162,7 @@ $this->link('Home:default', ['#' => $fragment]);
Разумеется, параметры можно указать и напрямую:
```latte
-refresh
+refresh
```
Функция `isLinkCurrent()` проверяет, совпадает ли цель ссылки с текущей страницей. Это можно использовать, например, в шаблоне, чтобы выделять ссылки и подобное.
diff --git a/application/ru/how-it-works.texy b/application/ru/how-it-works.texy
index 41a097e559..ab4934da46 100644
--- a/application/ru/how-it-works.texy
+++ b/application/ru/how-it-works.texy
@@ -150,7 +150,7 @@ class ProductPresenter extends Nette\Application\UI\Presenter
В шаблоне вы [создаёте ссылки |creating-links] на другие презентеры и действия вот так:
```latte
-product detail
+product detail
```
Просто напишите привычную пару `Презентер:действие` вместо настоящего URL и добавьте нужные параметры. Хитрость в `n:href`, которая говорит Nette обработать этот атрибут. Он затем породит:
diff --git a/application/ru/presenters.texy b/application/ru/presenters.texy
index 3adcc01fcc..5e72db6d5f 100644
--- a/application/ru/presenters.texy
+++ b/application/ru/presenters.texy
@@ -164,7 +164,7 @@ $url = $this->link('Product:show', [$id, 'lang' => 'en']);
В шаблоне ссылки на другие презентеры и действия создаются так:
```latte
-product detail
+product detail
```
Просто напишите привычную пару `Презентер:действие` вместо настоящего URL и добавьте нужные параметры. Хитрость в `n:href`, которая говорит Latte обработать этот атрибут и породить настоящий URL. В Nette вам вообще не нужно думать об URL, только о презентерах и действиях.
@@ -282,7 +282,7 @@ class HomePresenter extends Nette\Application\UI\Presenter
При создании ссылки значение параметра можно задать напрямую:
```latte
-click
+click
```
@@ -330,13 +330,13 @@ class ProductPresenter extends Nette\Application\UI\Presenter
При создании ссылки значение постоянного параметра можно изменить:
```latte
-detail in Czech
+detail in Czech
```
Как вариант, его можно *сбросить*, то есть убрать из URL. Тогда он примет значение по умолчанию:
```latte
-click
+click
```
diff --git a/application/tr/ajax.texy b/application/tr/ajax.texy
index 77de245dba..68afb4e5cb 100644
--- a/application/tr/ajax.texy
+++ b/application/tr/ajax.texy
@@ -209,7 +209,7 @@ Tamam
{control productGrid}
çalışmaz:
-{control productGrid $arg, $arg}
+{control productGrid, $arg, $arg}
{control productGrid:paginator}
```
diff --git a/application/tr/components.texy b/application/tr/components.texy
index 2d08ea1a4d..3817132cbc 100644
--- a/application/tr/components.texy
+++ b/application/tr/components.texy
@@ -107,7 +107,7 @@ public function render(): void
`{control}` etiketi, `render()` metoduna parametre aktarmayı sağlar:
```latte
-{control poll $id, $message}
+{control poll, $id, $message}
```
```php .{file:PollControl.php}
@@ -136,7 +136,7 @@ Daha iyi anlamak için bu etiketin PHP koduna nasıl çevrildiğini bilmek iyidi
```latte
{control poll}
-{control poll:paginator 123, 'hello'}
+{control poll:paginator, 123, 'hello'}
```
şuna çevrilir:
@@ -200,7 +200,7 @@ public function handleClick(int $x, int $y): void
Sinyal çağıran bir bağlantı her zamanki gibi oluşturulur; yani şablonda `n:href` niteliğiyle veya `{link}` etiketiyle, kodda `link()` metoduyla. Daha fazlası [URL bağlantıları oluşturma |creating-links#Sinyallere bağlantılar] bölümünde.
```latte
-buraya tıkla
+buraya tıkla
```
Sinyal her zaman geçerli presenter ve eylem üzerinde çağrılır; başka bir presenter veya eylem üzerinde çağırmak mümkün değildir.
@@ -281,13 +281,13 @@ class PaginatingControl extends Control
Bağlantı oluştururken kalıcı parametrenin değeri değiştirilebilir:
```latte
-sonraki
+sonraki
```
Ya da *sıfırlanabilir*, yani URL'den kaldırılabilir. O zaman varsayılan değerini alır:
```latte
-sıfırla
+sıfırla
```
diff --git a/application/tr/creating-links.texy b/application/tr/creating-links.texy
index ca11c0a42b..b07aec4313 100644
--- a/application/tr/creating-links.texy
+++ b/application/tr/creating-links.texy
@@ -29,13 +29,13 @@ Bağlantıları çoğu zaman şablonlarda oluştururuz ve `n:href` niteliği har
Bir bağlantıya tıklamak, basitçe söylersek, `ProductPresenter::renderShow()` metodunu çağırmak gibi bir şeydir. İmzasında parametreler varsa onu argümanlarla çağırabiliriz:
```latte
-ürün detayı
+ürün detayı
```
Adlandırılmış parametreler de aktarılabilir. Aşağıdaki bağlantı, `lang` parametresini `en` değeriyle aktarır:
```latte
-ürün detayı
+ürün detayı
```
`ProductPresenter::renderShow()` metodunun imzasında `$lang` yoksa, parametrenin değerini `$lang = $this->getParameter('lang')` ile veya bir [özellikten |presenters#İsteğin parametreleri] alabilir.
@@ -162,7 +162,7 @@ Bu sırada `action()` veya (`action()` tanımlı değilse) `render
Elbette parametreleri doğrudan belirtmek de mümkündür:
```latte
-yenile
+yenile
```
`isLinkCurrent()` fonksiyonu, bağlantının hedefinin geçerli sayfayla aynı olup olmadığını denetler. Bu, örneğin şablonda bağlantıları ayırt etmek için kullanılabilir.
diff --git a/application/tr/how-it-works.texy b/application/tr/how-it-works.texy
index 14887db71f..ef92ef9b8a 100644
--- a/application/tr/how-it-works.texy
+++ b/application/tr/how-it-works.texy
@@ -150,7 +150,7 @@ Az önce birçok yeni kavramla karşılaşmış olabilirsiniz, ama bunların anl
Şablonda başka presenter'lara ve eylemlere şöyle [bağlantı oluşturursunuz |creating-links]:
```latte
-ürün detayı
+ürün detayı
```
Gerçek URL yerine tanıdık `Presenter:eylem` çiftini yazın ve gerekli parametreleri ekleyin. İşin püf noktası, Nette'e bu niteliği işlemesini söyleyen `n:href`'tir. Şunu üretecektir:
diff --git a/application/tr/presenters.texy b/application/tr/presenters.texy
index 842739248d..eba4206c70 100644
--- a/application/tr/presenters.texy
+++ b/application/tr/presenters.texy
@@ -164,7 +164,7 @@ $url = $this->link('Product:show', [$id, 'lang' => 'en']);
Şablonda başka presenter'lara ve eylemlere bağlantılar şöyle oluşturulur:
```latte
-ürün detayı
+ürün detayı
```
Gerçek URL yerine tanıdık `Presenter:eylem` çiftini yazın ve gerekli parametreleri ekleyin. İşin püf noktası, Latte'ye bu niteliği işlemesini ve gerçek URL'yi üretmesini söyleyen `n:href`'tir. Nette'te URL'leri hiç düşünmeniz gerekmez, yalnızca presenter'ları ve eylemleri.
@@ -282,7 +282,7 @@ class HomePresenter extends Nette\Application\UI\Presenter
Bağlantı oluştururken parametrenin değerini doğrudan ayarlayabilirsiniz:
```latte
-tıkla
+tıkla
```
@@ -330,13 +330,13 @@ class ProductPresenter extends Nette\Application\UI\Presenter
Bağlantı oluştururken kalıcı parametrenin değeri değiştirilebilir:
```latte
-Çekçe detay
+Çekçe detay
```
Ya da *sıfırlanabilir*, yani URL'den kaldırılabilir. O zaman varsayılan değerini alır:
```latte
-tıkla
+tıkla
```
diff --git a/assets/cs/@home.texy b/assets/cs/@home.texy
index 608dc76068..9409d66d2b 100644
--- a/assets/cs/@home.texy
+++ b/assets/cs/@home.texy
@@ -473,3 +473,6 @@ Další četba
===========
- [Nette Assets: Konečně jednotné API pro vše od obrázků po Vite |https://blog.nette.org/cs/predstaveni-nette-assets]
+
+{{maintitle: Nette Assets: správa statických souborů v PHP aplikacích}}
+{{description: Žádné natvrdo zapsané cesty ani starosti se zneplatněním cache. Nette Assets spravuje obrázky, styly a skripty ve vaší PHP aplikaci, v kódu i v šablonách Latte.}}
diff --git a/assets/cs/configuration.texy b/assets/cs/configuration.texy
index 25ff87c45b..1db1a731d9 100644
--- a/assets/cs/configuration.texy
+++ b/assets/cs/configuration.texy
@@ -194,3 +194,6 @@ Kterýkoli zaregistrovaný mapper můžete také získat podle jména metodou `g
$mapper = $registry->getMapper('images'); // vrátí zaregistrovaný mapper
$default = $registry->getMapper(); // vrátí mapper 'default'
```
+
+{{maintitle: Konfigurace Nette Assets: mappery, cesty a verzování}}
+{{description: Konfigurace Nette Assets v NEON: základní cesta a URL, globální verzování a mappery, které určují, kde jsou vaše statické soubory, včetně Vite.}}
diff --git a/assets/cs/vite.texy b/assets/cs/vite.texy
index 79a67b0497..f1d984507b 100644
--- a/assets/cs/vite.texy
+++ b/assets/cs/vite.texy
@@ -619,3 +619,6 @@ export default defineConfig({
Pozor na cesty ke vstupním bodům v `rollupOptions.input` výše: Rollup resolvuje relativní cesty vůči aktuálnímu pracovnímu adresáři (kořeni projektu), **ne** vůči `root: 'assets'`. Holé `'app.js'` proto při buildu neexistuje. Buď použijte volbu pluginu `entry` (ta řeší cesty relativně ke `root`), nebo cesty pište relativně ke kořeni projektu, např. `'assets/app.js'`.
To je vše! Nyní máte moderní build systém integrovaný s Nette Assets.
+
+{{maintitle: Vite v PHP s Nette Assets: HMR a produkční buildy}}
+{{description: Prvotřídní integrace Vite pro PHP aplikace: bleskový vývoj s Hot Module Replacement, optimalizované produkční buildy, vstupní body a TypeScript.}}
diff --git a/assets/en/@home.texy b/assets/en/@home.texy
index 51f1c015ea..e7bffb6cb0 100644
--- a/assets/en/@home.texy
+++ b/assets/en/@home.texy
@@ -473,3 +473,6 @@ Further Reading
===============
- [Nette Assets: Finally unified API for everything from images to Vite |https://blog.nette.org/en/introducing-nette-assets]
+
+{{maintitle: Nette Assets: Manage Static Files in PHP Applications}}
+{{description: Stop hardcoding paths and worrying about cache invalidation. Nette Assets manages images, styles and scripts in your PHP app, in code and in Latte templates.}}
diff --git a/assets/en/configuration.texy b/assets/en/configuration.texy
index d3e5224db5..b18b3586f7 100644
--- a/assets/en/configuration.texy
+++ b/assets/en/configuration.texy
@@ -194,3 +194,6 @@ You can also retrieve any registered mapper by name using the `getMapper()` meth
$mapper = $registry->getMapper('images'); // returns the registered mapper
$default = $registry->getMapper(); // returns the 'default' mapper
```
+
+{{maintitle: Nette Assets Configuration: Mappers, Paths and Versioning}}
+{{description: Configure Nette Assets in NEON: the base path and URL, global versioning and the mappers that say where your static files live, including Vite.}}
diff --git a/assets/en/vite.texy b/assets/en/vite.texy
index 30e11c154b..2508b8d4a7 100644
--- a/assets/en/vite.texy
+++ b/assets/en/vite.texy
@@ -619,3 +619,6 @@ export default defineConfig({
Watch out for the entry paths in `rollupOptions.input` above: Rollup resolves relative paths against the current working directory (your project root), **not** against `root: 'assets'`. So a bare `'app.js'` won't exist at build time. Either use the plugin's `entry` option (which resolves entry paths relative to `root`), or write the paths relative to the project root, e.g. `'assets/app.js'`.
That's it! You now have a modern build system integrated with Nette Assets.
+
+{{maintitle: Vite in PHP with Nette Assets: HMR and Production Builds}}
+{{description: First-class Vite integration for PHP apps: lightning-fast development with Hot Module Replacement, optimized production builds, entry points and TypeScript.}}
diff --git a/best-practices/cs/@home.texy b/best-practices/cs/@home.texy
index e95aa101a3..5fae2af477 100644
--- a/best-practices/cs/@home.texy
+++ b/best-practices/cs/@home.texy
@@ -67,3 +67,6 @@ Stovky záznamů z Posledních sobot a videí o Nette naleznete pod jednou stře
+
+{{maintitle: Návody a best practices pro Nette: řešení častých úloh}}
+{{description: Návody, řešení častých úloh a best practices pro Nette: formuláře, stránkování, hezké URL, presentery, Composer a další.}}
diff --git a/best-practices/cs/attribute-requires.texy b/best-practices/cs/attribute-requires.texy
index 8effbed720..ff1e795871 100644
--- a/best-practices/cs/attribute-requires.texy
+++ b/best-practices/cs/attribute-requires.texy
@@ -175,3 +175,6 @@ Závěr
-----
Atribut `#[Requires]` vám dává velkou flexibilitu a kontrolu nad tím, jak jsou vaše webové stránky přístupné. Pomocí jednoduchých, ale mocných pravidel můžete zvýšit bezpečnost a správné fungování vaší aplikace. Jak vidíte, použití atributů v Nette může vaši práci nejen usnadnit, ale i zabezpečit.
+
+{{maintitle: Atribut #[Requires] v Nette: omezení přístupu k presenterům}}
+{{description: Omezte presenter nebo akci jen na požadavky POST, AJAX, stejný původ nebo přístup přes forward, a to jediným atributem #[Requires].}}
diff --git a/best-practices/cs/composer.texy b/best-practices/cs/composer.texy
index 15a0534723..fafd158920 100644
--- a/best-practices/cs/composer.texy
+++ b/best-practices/cs/composer.texy
@@ -280,3 +280,6 @@ Composer je úzce propojený s verzovacím nástrojem [Git |https://git-scm.com]
```shell
composer -g config preferred-install dist
```
+
+{{maintitle: Composer v PHP: instalace a správa závislostí}}
+{{description: Nainstalujte Composer, přidejte do PHP projektu knihovny, aktualizujte je a využijte autoloading. Praktické tipy k verzím PHP, Packagistu a planým hlášením.}}
diff --git a/best-practices/cs/creating-editing-form.texy b/best-practices/cs/creating-editing-form.texy
index c47c9f7535..fd2927f35a 100644
--- a/best-practices/cs/creating-editing-form.texy
+++ b/best-practices/cs/creating-editing-form.texy
@@ -202,3 +202,5 @@ class RecordPresenter extends Nette\Application\UI\Presenter
```
{{priority: -1}}
+{{maintitle: Jeden formulář pro přidání i editaci záznamu v Nette}}
+{{description: Jak v Nette správně implementovat přidání i editaci záznamu v databázi pomocí jednoho společného formuláře, včetně výchozích hodnot a zpracování.}}
diff --git a/best-practices/cs/dynamic-snippets.texy b/best-practices/cs/dynamic-snippets.texy
index fb05bbd60f..7a8f806fc3 100644
--- a/best-practices/cs/dynamic-snippets.texy
+++ b/best-practices/cs/dynamic-snippets.texy
@@ -27,9 +27,9 @@ public function handleUnlike(int $articleId): void
{snippet article-{$article->id}}
{if !$article->liked}
- to se mi líbí
+ to se mi líbí
{else}
- už se mi to nelíbí
+ už se mi to nelíbí
{/if}
{/snippet}
@@ -174,3 +174,5 @@ protected function createComponentLikeControl()
Máme téměř hotovo: aplikace nyní bude fungovat AJAXově. I zde nás čeká aplikaci optimalizovat, protože vzhledem k použití Nette Database se při zpracování signálu zbytečně načtou všechny články z databáze namísto jednoho. Výhodou však je, že nedojde k jejich vykreslování, protože se vyrenderuje skutečně jen naše komponenta.
{{priority: -1}}
+{{maintitle: Dynamické snippety v Nette: obnova položek seznamu přes AJAX}}
+{{description: Obnovte přes AJAX jen to, co se opravdu změnilo, třeba jednu položku seznamu. Dva způsoby v Nette: dynamické snippety v Latte a komponenty.}}
diff --git a/best-practices/cs/form-reuse.texy b/best-practices/cs/form-reuse.texy
index 5a7a520878..29f101405c 100644
--- a/best-practices/cs/form-reuse.texy
+++ b/best-practices/cs/form-reuse.texy
@@ -346,3 +346,6 @@ class MyPresenter extends Nette\Application\UI\Presenter
}
}
```
+
+{{maintitle: Znovupoužití formulářů v Nette: továrny a komponenty}}
+{{description: Použijte stejný formulář na více místech bez duplikace kódu: továrny a komponenty s formulářem a také řešení, kterým je lepší se vyhnout, jako je dědění.}}
diff --git a/best-practices/cs/inject-method-attribute.texy b/best-practices/cs/inject-method-attribute.texy
index d22dafecbd..9d29772a68 100644
--- a/best-practices/cs/inject-method-attribute.texy
+++ b/best-practices/cs/inject-method-attribute.texy
@@ -59,3 +59,6 @@ class MyPresenter extends Nette\Application\UI\Presenter
Výhodou tohoto způsobu předávání závislostí byla velice úsporná podoba zápisu. Nicméně s příchodem [constructor property promotion |https://blog.nette.org/cs/php-8-0-kompletni-prehled-novinek#toc-constructor-property-promotion] se jeví snazší použít konstruktor.
Naopak tento způsob trpí stejnými nedostatky, jako předávání závislosti do properties obecně: nemáme kontrolu nad změnami v proměnné a zároveň se proměnná stává součástí veřejného rozhraní třídy, což je nežádoucí.
+
+{{maintitle: Metody a atributy inject v presenterech Nette}}
+{{description: Způsoby předávání závislostí do presenterů v Nette: preferovaný konstruktor v porovnání s metodami inject a atributem Inject.}}
diff --git a/best-practices/cs/lets-create-contact-form.texy b/best-practices/cs/lets-create-contact-form.texy
index 573befbc70..f2f06be156 100644
--- a/best-practices/cs/lets-create-contact-form.texy
+++ b/best-practices/cs/lets-create-contact-form.texy
@@ -216,3 +216,6 @@ parameters:
```
A je hotovo!
+
+{{maintitle: Kontaktní formulář v PHP s Nette: odeslání na e-mail}}
+{{description: Vytvořte krok za krokem kontaktní formulář v Nette, od samotného formuláře až po odeslání dat na e-mail pomocí šablony Latte.}}
diff --git a/best-practices/cs/microsites.texy b/best-practices/cs/microsites.texy
index fb27c0ce3b..29fc8e5379 100644
--- a/best-practices/cs/microsites.texy
+++ b/best-practices/cs/microsites.texy
@@ -61,3 +61,6 @@ Proč používat Nette pro microsite?
- Někdy se vám může hodit [kešování|caching:], například pokud stahujete a zobrazujete feedy.
V dnešní době, kdy je rychlost a efektivita klíčová, je důležité mít nástroje, které vám umožní dosáhnout výsledků bez zbytečného zdržování. Nette framework vám nabízí právě to - rychlý vývoj, bezpečnost a širokou škálu nástrojů, jako je Tracy a Latte, které zjednodušují proces. Stačí nainstalovat pár Nette balíčků a vybudovat takovou microsite je najednou úplná hračka. A víte, že se nikde neskrývá žádná bezpečnostní díra.
+
+{{maintitle: Mikroweby v Nette: malý web v jednom PHP souboru}}
+{{description: Potřebujete rychle malý web? Celý jeho kód se vejde do jednoho index.php s routováním Nette a šablonami Latte a přitom máte Tracy i další vymoženosti.}}
diff --git a/best-practices/cs/pagination.texy b/best-practices/cs/pagination.texy
index b472525c7b..ed02e65eb5 100644
--- a/best-practices/cs/pagination.texy
+++ b/best-practices/cs/pagination.texy
@@ -271,3 +271,5 @@ Protože do šablony nyní neposíláme Paginator, upravíme část zobrazujíc
Tímto způsobem jsme implementovali stránkovací mechanismus bez použití Paginatoru.
{{priority: -1}}
+{{maintitle: Stránkování výsledků z databáze v PHP s Nette}}
+{{description: Výpis výsledků z databáze po stránkách v Nette: metoda v repozitáři, třída Paginator, odkazy v šabloně a jednodušší cesta s Nette Database Explorerem.}}
diff --git a/best-practices/cs/passing-settings-to-presenters.texy b/best-practices/cs/passing-settings-to-presenters.texy
index 941783e97d..f52e891163 100644
--- a/best-practices/cs/passing-settings-to-presenters.texy
+++ b/best-practices/cs/passing-settings-to-presenters.texy
@@ -47,3 +47,6 @@ class MyPresenter extends Nette\Application\UI\Presenter
}
}
```
+
+{{maintitle: Předání nastavení do presenterů v Nette: objekt Settings}}
+{{description: Potřebujete do presenterů předat hodnoty, které nejsou objekty, třeba debug režim nebo cesty k adresářům? Autowiring to neumí, zabalte je do objektu Settings.}}
diff --git a/best-practices/cs/post-links.texy b/best-practices/cs/post-links.texy
index 1de8883a78..f986978b31 100644
--- a/best-practices/cs/post-links.texy
+++ b/best-practices/cs/post-links.texy
@@ -17,8 +17,8 @@ Díky tomuto formuláři můžete místo klasického odkazu `` použít tlač
{snippet article-{$article->id}}
{if !$article->liked}
- gefällt mir
+ gefällt mir
{else}
- gefällt mir nicht mehr
+ gefällt mir nicht mehr
{/if}
{/snippet}
diff --git a/best-practices/de/post-links.texy b/best-practices/de/post-links.texy
index 8f654ea3e5..a50a492a2b 100644
--- a/best-practices/de/post-links.texy
+++ b/best-practices/de/post-links.texy
@@ -17,8 +17,8 @@ Dank dieses Formulars können Sie statt eines klassischen Links `` eine Schal
{snippet article-{$article->id}}
{if !$article->liked}
- I like it
+ I like it
{else}
- I don't like it anymore
+ I don't like it anymore
{/if}
{/snippet}
@@ -174,3 +174,5 @@ The view's template shrinks to the bare minimum (and is completely free of snipp
We're almost finished: the application will now function with AJAX. Here too, optimization is needed because, due to the use of Nette Database, signal processing unnecessarily loads all articles from the database instead of just the relevant one. The advantage, however, is that no unnecessary rendering occurs, as only the specific component instance is rendered.
{{priority: -1}}
+{{maintitle: Nette Dynamic Snippets: Refresh List Items with AJAX}}
+{{description: Use AJAX to refresh only what actually changes, such as a single item in a list. Two ways to do it in Nette: Latte dynamic snippets and components.}}
diff --git a/best-practices/en/form-reuse.texy b/best-practices/en/form-reuse.texy
index 466dd11301..9ad6e2bff9 100644
--- a/best-practices/en/form-reuse.texy
+++ b/best-practices/en/form-reuse.texy
@@ -346,3 +346,6 @@ class MyPresenter extends Nette\Application\UI\Presenter
}
}
```
+
+{{maintitle: Reusing Forms in Nette: Factories and Form Components}}
+{{description: Use the same form in multiple places without duplicating code: form factories and form components, plus solutions such as inheritance that you should avoid.}}
diff --git a/best-practices/en/inject-method-attribute.texy b/best-practices/en/inject-method-attribute.texy
index f37c76402b..6909d824d0 100644
--- a/best-practices/en/inject-method-attribute.texy
+++ b/best-practices/en/inject-method-attribute.texy
@@ -59,3 +59,6 @@ class MyPresenter extends Nette\Application\UI\Presenter
The advantage of this dependency passing method was its very concise syntax. However, with the introduction of [constructor property promotion |https://blog.nette.org/en/php-8-0-complete-overview-of-news#toc-constructor-property-promotion], using the constructor often appears simpler.
Conversely, this method suffers from the same drawbacks as property injection in general: we lack control over changes to the variable, and the variable becomes part of the class's public interface, which is generally undesirable.
+
+{{maintitle: Inject Methods and Attributes in Nette Presenters}}
+{{description: Ways to pass dependencies into Nette presenters: the preferred constructor injection compared with inject methods and the Inject attribute.}}
diff --git a/best-practices/en/lets-create-contact-form.texy b/best-practices/en/lets-create-contact-form.texy
index 52a0df88c1..11ce861d6e 100644
--- a/best-practices/en/lets-create-contact-form.texy
+++ b/best-practices/en/lets-create-contact-form.texy
@@ -216,3 +216,6 @@ parameters:
```
And it's done!
+
+{{maintitle: Contact Form in PHP with Nette: Send Data by Email}}
+{{description: Build a contact form in Nette step by step, from the form itself to sending the submitted data by email using a Latte template.}}
diff --git a/best-practices/en/microsites.texy b/best-practices/en/microsites.texy
index cd9c96b841..c80c4a2893 100644
--- a/best-practices/en/microsites.texy
+++ b/best-practices/en/microsites.texy
@@ -61,3 +61,6 @@ Why use Nette for Microsites?
- Sometimes, [caching|caching:] might be useful, for example, when downloading and displaying feeds.
In today's fast-paced world, where speed and efficiency are crucial, having tools that enable you to achieve results without unnecessary delays is vital. The Nette Framework offers precisely that - rapid development, security, and a wide array of tools like Tracy and Latte that streamline the process. Just install a few Nette packages, and building such a microsite becomes incredibly easy. And you can be confident there are no hidden security vulnerabilities.
+
+{{maintitle: Nette Microsites: A Small Website in One PHP File}}
+{{description: Need a small website fast? Keep all its code in a single index.php with Nette routing and Latte, and still get Tracy, safe templates and other conveniences.}}
diff --git a/best-practices/en/pagination.texy b/best-practices/en/pagination.texy
index 04622fe991..82cab1ede2 100644
--- a/best-practices/en/pagination.texy
+++ b/best-practices/en/pagination.texy
@@ -271,3 +271,5 @@ Since we are no longer passing the Paginator object to the template, we need to
This way, we've implemented the pagination mechanism without explicitly using the Paginator utility.
{{priority: -1}}
+{{maintitle: PHP Database Pagination with Nette: Paginator and Explorer}}
+{{description: List database results page by page in Nette: a repository method, the Paginator class, links in the template and a simpler way with Nette Database Explorer.}}
diff --git a/best-practices/en/passing-settings-to-presenters.texy b/best-practices/en/passing-settings-to-presenters.texy
index 4a4bc51594..4432186ff7 100644
--- a/best-practices/en/passing-settings-to-presenters.texy
+++ b/best-practices/en/passing-settings-to-presenters.texy
@@ -47,3 +47,6 @@ class MyPresenter extends Nette\Application\UI\Presenter
}
}
```
+
+{{maintitle: Passing Settings to Nette Presenters: Settings Object}}
+{{description: Need to pass non-object values such as debug mode or directory paths to presenters? Autowiring can't do it, so wrap them in a dedicated Settings object.}}
diff --git a/best-practices/en/post-links.texy b/best-practices/en/post-links.texy
index 3bcb6628a7..04d886f05a 100644
--- a/best-practices/en/post-links.texy
+++ b/best-practices/en/post-links.texy
@@ -17,8 +17,8 @@ Thanks to this form, instead of a standard `` link, you can use a `