Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Plugin: PostController-Event to replace Category-Drowpdown
Hi
I am trying to create a plugin that replaces the "Category" dropdown menu when starting a new discussion depending on parameters in the URL. I already got to know how to insert my own (hidden) input using a plugin:
This of course does not replace the old dropdown input field. I am totally new to plugins, and also reading the Quick-Start Guide didn't help me. ;-)
Has anyone got an Idea how to manage that?
Kind regards.
I am trying to create a plugin that replaces the "Category" dropdown menu when starting a new discussion depending on parameters in the URL. I already got to know how to insert my own (hidden) input using a plugin:
class ProjectsPlugin implements Gdn_IPlugin {
public function PostController_BeforeFormButtons_Handler($Sender) {
echo $Sender->Form->Hidden('test', array('value' => 'test'));
}
function Setup(){
}
}
This of course does not replace the old dropdown input field. I am totally new to plugins, and also reading the Quick-Start Guide didn't help me. ;-)
Has anyone got an Idea how to manage that?
Kind regards.
0
Comments
What I didn't mention before is that I am also trying to add some custom inputs. Maybe you'll see me again if I don't get it run.
Thanks again. (: