how can i set title in @layout.latte

thcom
Backer | 94
+
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 | 8082
+
+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 | 3608
+
0
-

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

thcom
Backer | 94
+
0
-

great thank you boys !!!