HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: Any example of using the new sort & filter module?
-
Re: Any example of using the new sort & filter module?
-
Re: Any example of using the new sort & filter module?
-
Re: Any example of using the new sort & filter module?
-
Re: Any example of using the new sort & filter module?
With 50% already provided by Vanilla, you will only have to implement this part: public function discussionModel_beforeGet_handler($sender, $args) { $categoryRequested = Gdn::request()->get('category'); if (!$categoryRequested) { return; } $allCategories = CategoryModel::categories(); $categoryID = false; foreach… -
Re: Any example of using the new sort & filter module?
Yes, the "saved filters" is simply genius, well thought ahead on that one! Also, just in case, I replaced all $_GET with Gdn::request()->get() in the plugin. Also ... I have this saved filter... Tags=EQ:6&CategoryID=NE:321&InsertUserID=EQ:{userid}. Accessed by /discussions/FilterDiscussion?!filter=mine And then I was gonna… -
Re: Any example of using the new sort & filter module?
The DiscussionModel supports "sorts" and "filters". if you say it should "only show" we are talking about filters. While there are default sorts defined in the DiscussionModel, there are no filters. You would have to create a plugin that would consume site/discussions?category=books&tag=tragedy and add the corresponding…
7 results