Building a custom theme based on vanilla:
I want to show the posts.index
for each post in the topic.tpl template
The problem is that the first post is, obviously, #0, and I want it to display #1. Also the href should be /1
, and not /0
Well, as far as I know, you can't just do {posts.index+1}
, you need a template helper. How should a theme register and use a custom template helper? Should I edit public/src/helpers.js
manually???
I can't find an example, hope you guys can help.
Thanks in advance, and great job with nodebb, it is clearly a next-generation forum platform.