markus_blue_tomato Posted November 5, 2020 Share Posted November 5, 2020 Hello! I have a problem with the display of getModuleConfigInputfields. With this code, the Inputfields are not shown. When I remove "namespace ProcessWire" it works, but then the first request needs 1.5 minutes for the compilation. Does anybody knows what the .... is going on here? I am getting a little bit crazy ? <?php namespace ProcessWire; class ElasticsearchFeeder extends WireData implements Module, ConfigurableModule { public static function getModuleInfo() { return array( 'title' => 'ElasticsearchFeeder', 'class' => 'ElasticsearchFeeder', 'version' => 134, 'summary' => 'Schema-flexible module for getting your page into ElasticSearch', 'href' => 'https://github.com/blue-tomato/ElasticsearchFeeder/', 'singular' => true, 'autoload' => 'template=admin', 'requires' => [ 'PHP>=7.0.0', 'ProcessWire>=3.0.133' ] ); } public function init() { } public static function getModuleConfigInputfields(array $data) { $inputfields = new InputfieldWrapper(); $field = wire('modules')->get('InputfieldText'); $field->name = 'headline_default'; $field->label = "Please enter the promo headline:"; $inputfields->add($field); return $inputfields; } } Link to comment Share on other sites More sharing options...
markus_blue_tomato Posted November 5, 2020 Author Share Posted November 5, 2020 Problems solved by uninstall und new install of the module. I think changing the namespace needs new install of modules.. Link to comment Share on other sites More sharing options...
kongondo Posted November 5, 2020 Share Posted November 5, 2020 6 hours ago, markus_blue_tomato said: I think changing the namespace needs new install of modules.. That or fighting with the FileCompiler ?. Link to comment Share on other sites More sharing options...
markus_blue_tomato Posted November 5, 2020 Author Share Posted November 5, 2020 2 hours ago, kongondo said: That or fighting with the FileCompiler ?. I think I fighted too much hours with it.... ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now