I have s site I'm building where I need to add a bunch of menus.
These menus will appear on a couple of pages - and will be formatted into a table type format with images etc.
Not sure where to start?
Should I use collections to house them?
Or is Migx a better solution?
It all depends. If there are going to be a lot of them then either Collections or MIGXdb would be the more appropriate solution.
An ordinary MIGX TV is stored as a JSON string in a single TV, so the bigger your list gets the slower working with it will get.
I've used all three solutions, sometimes on the same site, all depending on the expected expertise of the end-user editors and the expected size of the list.
OK thanks - The end user will probably not edit it - it's more likely to be me. To be honest I can't get my head round MigX, so will probably go with collections!
Thanks for your advice - I thought that would be the case, but always good to get that confirmed by a pro!
Depending on what you want to do with your list, keep in mind FastField, or pdoTools which includes its functionality. It provides a new MODX tag, [[#id.field]] to allow you to fetch an arbitrary field from an arbitrary resources. For example, [[#56.content]] will load the content of resource #56. I use it a lot for single-page scrolling pages with several sections managed by resources.
To clarify, MIGx and Collections really accomplish two different goals.
Collections is a long list of resources - each having its own url and list of fields, just like any page. You can do anything with a Collection page that you could a normal resource, it’s just simply a better way to organize a long list of resources (think Custom Post Types or CPTs in Wordpress).
MIGx, as far as I understand it (there’s a LOT about it that I don’t understand), is a way to add a multi-column, multi-row Template Variable to any resource.
So in a way, they go hand in hand, but they should be used in very different ways.
For instance, if you want to create a product catalog, you would want to use Collections to create an individual page (resource) for each product. Then you could use MIGx for a way to add multiple images to each product, and Tagger to assign products to different categories in different groups. Those three addons create a very powerful basis from which to start creating blogs, catalogs, galleries - anything that aggregates content. Hope that makes sense.