Building a new module
Posted: Fri 7. Nov 2008, 21:54
cheers all,
Currently I'm preparing to build a new module for phpwcms. Basic concept is a custom product catalog which can output its data to an XML file for using in (custom) googlemaps infowindows.
As it's been a while since I've coded phpwcms modifications, I need some advice and best practices.
Couldn't find any recent info so here's my questions:
I've researched existing modules as the googlemaps plugin and the shopmodule. They all have backend.default, frontend.init, frontend.render and module.default php files and their core functions in the 'inc' folder.
What do I need to do (or reuse) to build the basic 'framework' for my new module, which functions and vars do I need no mather what?
I've tried but can't get my module to show up in the modules section in the backend. Am I right that enabling a module is no longer needed in 1.3.9? Phpwcms should now be able to detect modules itself, right? So how to enable a module in the backend?
Thanks in advance for all hints, I really like to document my findings and development to help others.
Cheers!
cyppher.
Currently I'm preparing to build a new module for phpwcms. Basic concept is a custom product catalog which can output its data to an XML file for using in (custom) googlemaps infowindows.
As it's been a while since I've coded phpwcms modifications, I need some advice and best practices.
Couldn't find any recent info so here's my questions:
I've researched existing modules as the googlemaps plugin and the shopmodule. They all have backend.default, frontend.init, frontend.render and module.default php files and their core functions in the 'inc' folder.
What do I need to do (or reuse) to build the basic 'framework' for my new module, which functions and vars do I need no mather what?
I've tried but can't get my module to show up in the modules section in the backend. Am I right that enabling a module is no longer needed in 1.3.9? Phpwcms should now be able to detect modules itself, right? So how to enable a module in the backend?
Thanks in advance for all hints, I really like to document my findings and development to help others.
Cheers!
cyppher.