PHP conditional to check which category/subcategory I'm in

Plugin Development
  • Similar to something like <!-- IF !isTopicOrMain --> or <!-- IF !isEditing -->, is there some variable I can check in my .tpl file to see which category or subcategory I'm in?

    I'm building out a custom composer that changes based on where the topic is being posted. For instance, it would know that I'm currently in the "NodeBB Plugins" category and display a particular part of my .tpl file, otherwise it wouldn't.


Suggested Topics


  • 0 Votes
    8 Posts
    996 Views
  • 1 Votes
    10 Posts
    1720 Views
  • 0 Votes
    3 Posts
    1612 Views
  • 0 Votes
    3 Posts
    1756 Views
  • 0 Votes
    2 Posts
    1182 Views