charger Posted June 18, 2015 Share Posted June 18, 2015 I'm slowly getting into module development. My aim is to - in a first step - convert Ryans TextformatterVideoEmbed module to the new module structure he proposes in the Helloworld module. In a second step, I'd like to add some more options to the module. My fork can be found here. However, I'm having a problem with the getModuleInfo function. As soon as I replace it with a TextformatterVideoEmbed.info.php file, I start getting the following error when I edit a field like title (text) or body (textarea): Method TextformatterVideoEmbed::getModuleInfo does not exist or is not callable in this context Additionally, the Details tab of that field is not shown at all. Am I missing something? Do textformatters have special requirements in this term? Link to comment Share on other sites More sharing options...
LostKobrakai Posted June 19, 2015 Share Posted June 19, 2015 Which version of processwire are you using? Does the Helloworld module work on that installation? Link to comment Share on other sites More sharing options...
horst Posted June 19, 2015 Share Posted June 19, 2015 it is xxx.info.json, not .info.php Link to comment Share on other sites More sharing options...
charger Posted June 19, 2015 Author Share Posted June 19, 2015 I'm using 2.6.1. And the Hello World module works as expected. According to Ryans comments in the ProcessHello module, it's possible to use *.info.json or *.info.php. 2 Link to comment Share on other sites More sharing options...
horst Posted June 19, 2015 Share Posted June 19, 2015 According to Ryans comments in the ProcessHello module, it's possible to use *.info.json or *.info.php. learned something new again! Link to comment Share on other sites More sharing options...
charger Posted July 5, 2015 Author Share Posted July 5, 2015 Btw. I tried it again using pw 2.6.7 dev but the problem persists. Link to comment Share on other sites More sharing options...
Nico Knoll Posted July 10, 2015 Share Posted July 10, 2015 If you need an easy start for your development try: http://modules.pw 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