how can i set title in @layout.latte

thcom
Member | 62
+
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)

David Grudl
Nette Core | 7234
+
+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}

CZechBoY
Member | 3584
+
0
-

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

thcom
Member | 62
+
0
-

great thank you boys !!!