Hello,
I'm trying to create an SPA using CouchCMS and one of the Mobile Frameworks. The structure I am after is as follows
- Country
-- City
--- Suburb
---- Company
----- Department
I would like to get a list of countries which when one country is clicked leads to cities in that country and when a city s clicked the leads suburbs in that city and when a suburb is clicked a list of companies are listed and when a company is clicked it lists the departments in that company.
I tried using folders for country, city and suburb but somehow it did seem to work the way I wanted, maybe my coding was not right.
I also tried relationship and it seems to be working right but I can't seem to get the list as I describe above. I also would like to obtain a count of the number of departments in a company as well as the count of companies in a suburb, city and country, which is why I opted to use relationship.
I created templates for country, city, suburb, company and department. Used the related_pages code but had issues listing the subsequent list based on the clicked item, for example I set up the country list to obtain the city list but was not getting the city list and so forth
Basically, would using relationship work better for what I wold like to achieve or folders or nested pages.
Thanks & Regards
Said
I'm trying to create an SPA using CouchCMS and one of the Mobile Frameworks. The structure I am after is as follows
- Country
-- City
--- Suburb
---- Company
----- Department
I would like to get a list of countries which when one country is clicked leads to cities in that country and when a city s clicked the leads suburbs in that city and when a suburb is clicked a list of companies are listed and when a company is clicked it lists the departments in that company.
I tried using folders for country, city and suburb but somehow it did seem to work the way I wanted, maybe my coding was not right.
I also tried relationship and it seems to be working right but I can't seem to get the list as I describe above. I also would like to obtain a count of the number of departments in a company as well as the count of companies in a suburb, city and country, which is why I opted to use relationship.
I created templates for country, city, suburb, company and department. Used the related_pages code but had issues listing the subsequent list based on the clicked item, for example I set up the country list to obtain the city list but was not getting the city list and so forth
Basically, would using relationship work better for what I wold like to achieve or folders or nested pages.
Thanks & Regards
Said