The new version of this generator is avalable here
oryxgenYou can test the generator with this sample. This is a news modules with categories :
1/ create your database using the folowing sql code :
------------------------------------------------------
this because the table must be present in the base before generated code.
CREATE TABLE `xn_new` (
`new_id` mediumint(8) unsigned NOT NULL auto_increment,
`title` varchar(255) NOT NULL default '',
`date_published` datetime NOT NULL default '0000-00-00 00:00:00',
`date_expired` datetime NOT NULL default '0000-00-00 00:00:00',
`hometext` text NOT NULL,
`bodytext` text NOT NULL,
`counter` int(8) unsigned NOT NULL default '0',
`categorie_id` smallint(4) unsigned NOT NULL default '1',
`story_type` varchar(5) NOT NULL default '',
`uid_creation` mediumint(8) NOT NULL default '0',
`uid_update` mediumint(8) NOT NULL default '0',
`date_creation` datetime NOT NULL default '0000-00-00 00:00:00',
`date_last_update` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`new_id`)
);
CREATE TABLE `xn_categorie` (
`categorie_id` smallint(4) unsigned NOT NULL auto_increment,
`title` varchar(50) NOT NULL default '',
`uid_creation` mediumint(8) NOT NULL default '0',
`uid_update` mediumint(8) NOT NULL default '0',
`date_creation` datetime NOT NULL default '0000-00-00 00:00:00',
`date_last_update` datetime NOT NULL default '0000-00-00 00:00:00',
PRIMARY KEY (`categorie_id`)
);
2/ Place the file called oryxnews.xml in the oryxgen/install/myLanguage directory.
--------------------------------------
Click on the oryxgen module, to see appearing the block of the module.
Click on "OryxNews" in the block "Load oryxgen" to load the oryxnews data.
Now you must have the oryxnews metadata load in oryxgen.
3/ Click on oryxgen module, select "oryxnews" by clicking on the "update" icons.
Generate the structure, generate language, etc...
4/ Specilizes the languages files
5/ Before reinstalling your oryxnews module, you must delete yours 3 tables.
Have a good time
OryxVet