You can just hard code to english but users using different languages will not be able to see them in their correct language. The correct values are here if you want to fix them https://github.com/NodeBB/NodeBB/blob/master/install/data/navigation.json#L26
Edit teaser text
-
What kind of changes do you want to do?
-
There's two things i want to do.
- Shorten the teaser text
- Pull out a specific link to use as a button
I think i figured it out though using something like
{ "hook": "filter:topics.get", "method": "teaserContentShort" }
var Theme = { teaserContentShort: function (data, callback) { data.topics.forEach(topic => { topic.teaser.contentShort = topic.teaser.content.slice(0,20); }); callback(null, data); } };
It seems to work. Hopefully thats not using the wrong paradigm.