@pitaj yeah. It's starting work
Setting the browser's title for a custom plugin's page
-
How can I programatically set the browser title in my custom plugin to something like this "Map | NodeBB"?
Pl. guide.
-
In the template data you set the
title
property:res.render('map', { title: 'Map', });
-
Thanks. Now my custom global.json has this content:
{
"header.map":"Maps"
}In my map.tpl, I can access this property as follows: [[global:header.map]]
But I cannot access it in the same way in my controller.js like this:
res.render('map', { title: [[global:header.map]] });What is the correct way to access this property value in controller.js?
-
@cool you should be able to do
title: '[[global:header.map]]'
-
It is working now. Thanks