• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

How to get topicData in filter:topic.thread_tools

Scheduled Pinned Locked Moved NodeBB Plugins
4 Posts 2 Posters 1.8k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Andrea CardinaleA Offline
    Andrea CardinaleA Offline
    Andrea Cardinale
    wrote on last edited by
    #1

    Hi,
    I need to add an entry in the ThreadTools menu.
    Based on the value of the topic I want to display "Set ..." or "Unset ...".
    How can I get the topicData using the hook filter:topic.thread_tools.

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #2

    Hi this is not possible with the current data passed into the hook. We can add the necessary data in 0.7.0 since its a breaking change.

    pass topicData to filter:topic.thread_tools · Issue #2705 · NodeBB/NodeBB

    favicon

    GitHub (github.com)

    Andrea CardinaleA 1 Reply Last reply
    2
  • Andrea CardinaleA Offline
    Andrea CardinaleA Offline
    Andrea Cardinale
    replied to <baris> on last edited by
    #3

    Thanks @baris ,
    for now, I'll find an alternative solution for my plugin.

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #4

    This is now on master. The data that is passed to the filter includes the topic, the uid of the current user and an empty tools array.

    1 Reply Last reply
    1

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development