• 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

Prevent specific category from showing in 'recent'

Scheduled Pinned Locked Moved General Discussion
8 Posts 3 Posters 2.1k 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.
  • mudmanc4M Offline
    mudmanc4M Offline
    mudmanc4
    wrote on last edited by
    #1

    Scenario: Adding a feed to show in it's own category where (category = {place whatever here})

    Final outcome: category = {place whatever here} does not show in recent, as recent is the default landing page, and specific feed does not need to be there.

    Thoughts?

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

    @mudmanc4 you can create a plugin to listen for hook filter:topics.get and remove topics from that specific category.

    1 Reply Last reply
    1
  • yariplusY Offline
    yariplusY Offline
    yariplus Community Rep
    wrote on last edited by
    #3

    Wouldn't that filter the topics from everywhere, including the category page itself?

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

    @yariplus right... it does.

    looks like there is no way to do this... even modifying core to do this is not going to be easy based on the way it is built.

    1 Reply Last reply
    0
  • mudmanc4M Offline
    mudmanc4M Offline
    mudmanc4
    wrote on last edited by mudmanc4
    #5

    I'll simply set permissions to allow only those who need to see the category, ugly but semi- functional until I find another way.

    Thanks for the input.

    1 Reply Last reply
    0
  • yariplusY Offline
    yariplusY Offline
    yariplus Community Rep
    wrote on last edited by
    #6

    It's only reading from a sortedSet for recent.

    A filter:topics.updateRecent should work I think, to filter it out based on the cid of the topic.

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

    @yariplus the PR you sent... that's for creating a plugin to not add any new topics from the category to the recent list right... it won't let you filter out any existing one's from the list?

    yariplusY 1 Reply Last reply
    0
  • yariplusY Offline
    yariplusY Offline
    yariplus Community Rep
    replied to pichalite on last edited by yariplus
    #8

    @pichalite Right, it only prevents new posts/topics from going to the Recent page.

    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