Setting the browser's title for a custom plugin's page
-
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]]'
Copyright © 2024 NodeBB | Contributors