display different things in theme
Moved
Solved
Technical Support
-
can someone explain for beginner how to display different things in a theme?
for example in this post https://community.nodebb.org/topic/8328/display-different-things-in-theme
what do you need to write to simply display the post timestamp or the user's signature?
-
-
@charles I usually just add
/api
to the beginning of the url for the page you are trying to edit. It will give you a json object, which is what the {posts.editedISO} is referring to. For example, https://community.nodebb.org/api/topic/8328/display-different-things-in-theme/2Advanced: You can also add any data to that object using the controller hook for that page, e.g. https://github.com/NodeBB/NodeBB/blob/master/src/controllers/topics.js#L290 and editing the templateData.
Copyright © 2024 NodeBB | Contributors