how can i set title in @layout.latte

4 months ago

thcom
Member | 52
+
0
-

<title>{ifset title}{include title|stripHtml} | {/ifset}Nette Sandbox</title>

where can I set this variable ?

Last edited by thcom (2019-12-12 19:24)

4 months ago

David Grudl
Nette Core | 6985
+
+1
-

But there is no variable. (To print variable you should write {$title})

This code <title>{ifset title}{include title|stripHtml} | {/ifset}Nette Sandbox</title> means that somewhere is block called title: {block title}Hello{/block}

4 months ago

CZechBoY
Member | 3494
+
0
-

Define this block in your xxx.latte which extends/uses layout where you include that block title.

4 months ago

thcom
Member | 52
+
0
-

great thank you boys !!!