So I've read in several places about the benefit of using a custom table with one resource vs having thousands of resources. Sounds great if only I could figure it out.
The project is a hotel search website with about 100,000 hotels. The hotel pages will all display using the same formatting so it would make sense to use a custom table for those. I also want those hotel resources to be accessible via getResources to act as children in a parent resource, which may itself be from a custom table. For example my data has over 10,000 cities and I want to have city pages, such as a page for San Francisco, and on that page will be city specific data as well as select hotel resources via getResources. Those hotel resources need to be controllable via publish and un-publish dates since I'll have certain hotels offer time sensitive promotions that I want to feature on the city pages.
Also on both the hotel and city resources that are fed content from the custom tables, I need those resources to display with their own friendly URL such as domain.tld/cityname for the city page or domain.tld/hotelname for the hotel page.
Also these custom table resources will need to find their way into wayfinder menus. For example I may have a California menu that has a list of cities in California that each represent a city resource from the custom table for cities.
I've tried working through the tutorial at
http://bobsguides.com/custom-db-tables.html but I'm no where near making it work. And I've read this on custom tables and 3rd party components
http://rtfm.modx.com/display/revolution20/Using+Custom+Database+Tables+in+your+3rd+Party+Components and I've also got the modx: the official guide book and I'm just not getting how to bring this all together. Any insights or additional tutorials would be very helpful as this really unlocks the power of the CMS and it's just such a mystery on how to implement.
If it matters I'm using revo 2.2.1.
Thanks in advance for any and all help, I really need to make this work and I'm sure I'm not alone.