@fais3000 this is good.
how to add custom fields to topic?
-
topic only has fields like
uid, cid, title, contend, tags, pined
etc. I want to add a custom field to every topic likeprice: 50, subtitle: 'foo'
to internal topic DB and then retrieve later for users. Any ideas? Thanks! -
Here you go!
https://community.nodebb.org/topic/9447/howto-inject-hidden-data-into-composer/8
This should get you started. You'll need to edit the composer.tpl, or inject html at composer load, checking if the post is a new topic.