Where would I start to build something that could do bulk tagging?



  • I'm thinking a plugin might be the best way to go about this, or just writing a script against the REST API. At a minimum, I want to be able to tag everything in a category with a specified tag or tags. Ideally, I would be able to perform a search/query, and then apply the tag to those results.

    Thoughts? Is there any documentation I can read on API's/functions? What's the function to add tags to a topic?



  • I'm using Studio 3T to explore the database, and I cannot see where tags are applied. I've tried looking at the topic and the post, and even with topics and posts that have tags, I don't see any fields for the tags associated with it.


  • Admin Staff

    Take a look at this file https://github.com/NodeBB/NodeBB/blob/master/src/topics/tags.js. You can find out which sorted sets/sets are used for tags there. The main one for topics is tid:<tid>:tags



  • I still cannot figure it out. I see the tid: in some of the topics, but it's got the topic id in it, not a tag id. I'll buy someone a $100 Amazon (or other) gift card (or $100 worth of ETH/BTC) if they release on github a bulk tagging plugin that allows me to add one or multiple tags to all topics/posts in a category. 🙂 I know it's not much, but I'm not generating any revenue off this site and have limited budget.


Log in to reply
 

Suggested Topics

  • 1
  • 2
  • 2
  • 1
  • 3
| |