-
- 24,544 Posts
I have not tried this in 2.3.2, but it should work. It assumes that you've created the tables and generates the xPDO class and map files from them.
http://bobsguides.com/custom-db-tables.html
There is also the ClassExtender package if you are trying to extend modResource or modUser. In theory, it could also be used for other classes, but I've never tested that.
-
- 5,888 Posts
not sure about that script, didn't test it, but if you have MIGX installed, you can do that with two or three mouse-clicks.
Go the MIGX-CMP tab 'package manager'
put there a package name
put a table-prefix for the tables you want to create a schema from
click 'Create Package' - this does create the folder-structure under core/components/yourpackage
click 'Write Schema' - this does write the xpdo-schema
click 'Parse Schema' - this does create the classes and map-files
[ed. note: Bruno17 last edited this post 9 years, 5 months ago.]
-
- 24,544 Posts
That's very slick Bruno. Does it then create a transport.zip file?
[ed. note: BobRay last edited this post 9 years, 5 months ago.]
-
- 5,888 Posts
no it does only create the file-directory at the correct place.
But with migxElementsManager its possible to create a transport-package together with snippets,chunks,templates,plugins,categories,MIGX-configurations,Manager-menues and all that with some additional clicks.
This was especially made to prepare custom MIGXdb-packages quickly, but can also be used to put stuff from multiple categories together into one package.
-
- 24,544 Posts
Still, very cool. I thought it might be a package since it's on the Package Manager tab, but putting the files in place is even better.
-
- 370 Posts
Hi Bruno,
Off course I've got MIGX installed .I just never understood it's power. the package is created just fine.
Thanks
RDG