Usually we'd just use resources for each item, with TVs for any special fields. Then display lists of items using getResources.
If you really want to get complicated, you could create a custom manager page (CMP) with custom tables. It would be easier to do this using MIGXdb for the controller.
http://rtfm.modx.com/extras/revo/migxdb/migxdb.tutorials/migxdb.create-doodles-manager-with-help-of-migxdb
Once you select a "migxdb" type TV, the Configurations field will appear. I thought I had fixed that in the docs!
-
- 8 Posts
Is there any ready solution available instead to doing it from scratch?
There are a few e-commerce type add-ons that handle catalogs in different ways. I'm not aware of any simple catalog add-ons.
But if you just want a simple catalog, it's very easy to either use resources with Collections to organize them and
taxonomies and various tagging TV add-ons, or a MIGXdb solution.
You could also use ClassExtender to create a custom resource type that has taxonomy and tagging and other fields as part of the resource. It's better for searching and sorting that way.
http://bobsguides.com/blog.html/2014/06/02/why-extend-modresource/
-
- 5,888 Posts
when your grid is working and you could add records, you should get the records with migxLoopCollection.
What is your migxLoopCollection-call currently?
And of course, you can have CMP like done with the doodles example for your gallery.
Just fill out the CMP-Settings and create a menu-item.
Do you want your records connected to resources with a resource_id or are they not related to resources at all?
-
- 5,888 Posts
They don't need to be connected to resources.
This is just one way of many to create groups of records, where each group is related to one resource (by the field resource_id in this case).