I am using formIt to create resources ( Thanks To Bruno17s great post here
http://modxcms.com/forums/index.php/topic,54204.0.html ) and I would like people to create the resource in the correct folder. To do this, I was thinking I would need several select dropdowns:
Continent (Asia, Europe, etc)
Country (UK, France, etc)
Region (London, South East, etc)
my site tree looks like this:
+---Americas
+---Oceania
+---Asia
+---Europe (etc)
+---France
+---Denmark
+---UK (etc)
+---Midlands
+---London
+---South East (etc)
So the last level (Midlands, London, South East) is the level I’m interested in where people can add records. All I need is the ID of the parent. How can I create a dynamic select dropdown box that pulls the values from the site structure (using ditto or getResources) and populate the select dropdowns?
I have this working with a simple dropdown using Ditto but it only goes one level. I have seen some tutorials where I could create a load of arrays but it seems inefficient. Hoping someone might have some ideas out there?