• 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 obtain current opening topic's slug in plugin?

Scheduled Pinned Locked Moved Solved General Discussion
5 Posts 3 Posters 1.5k 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.
  • JamJ Offline
    JamJ Offline
    Jam
    wrote on last edited by Jam
    #1

    Hi, i want to make a plugin that displaying some suggested topics on the bottom of the topic, but the suggested topics should not contain current browsing topic,

    so, i want to know how to obtain current opening topic's slug or id in this plugin, and exclude current browsing topic, many thanks~~ 😸

    pichaliteP 1 Reply Last reply
    0
  • pichaliteP Offline
    pichaliteP Offline
    pichalite Plugin & Theme Dev
    replied to Jam on last edited by
    #2

    @Jam you can already do that using widgets. Just add the "Suggested Topics" widget to "Topic Footer" in topic.tpl under ACP -> Extend -> Widgets.

    S 1 Reply Last reply
    1
  • S Offline
    S Offline
    sanatisharif
    replied to pichalite on last edited by
    #3

    @pichalite in my nodebb topic.tpl dose not have "topic footer" only has sidebar.

    I'm using nodebb 1.1.0 with lavender Them!

    pichaliteP 1 Reply Last reply
    0
  • pichaliteP Offline
    pichaliteP Offline
    pichalite Plugin & Theme Dev
    replied to sanatisharif on last edited by
    #4

    @sanatisharif lavender theme doesn't have the widget placeholder in footer for topic.tpl

    I was talking about persona.

    JamJ 1 Reply Last reply
    1
  • JamJ Offline
    JamJ Offline
    Jam
    replied to pichalite on last edited by
    #5

    @pichalite thanks, i've got it~

    1 Reply Last reply
    0

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