DA Repeat Selection using nested repeat regions
Is it possible to have a repeat region with a nested repeat region and apply DA Repeat Selection to one or both of the repeat regions?
Is it possible to have a repeat region with a nested repeat region and apply DA Repeat Selection to one or both of the repeat regions?
Hi Les,
While I don't know the specifics of your project, I can confirm that I have done this several times. Like for example on my blog categories page -- I have a repeat region to display the various categories that are entered to accompany each blog. Within that repeat region, though, is another one that goes through all the posts again to provide a count for how many times the category is mentioned. So the first query just loops through using the MySQL UNIQUE command to get each cat once.. the nested loop then counts how many posts match the category in order to provide an accurate category and tag list. To see the page I am referring to, see here: blog.php
Let me know if you want any code snippets.
Brian
I have a question about using javascript with the repeat selection behavior. I have a table that I am using a repeat selection. I am also using javascript and xml files to populate two select menus. When I load the page all of the fields work in the repeat selection except the two select menus that are prepopulated by javascript and xml files. The two select menus that are populated by javascript and xml don't repeat. Only the first row shows. Is there a way to get the fields to repeat? I attached the file I'm working on.
I cant troubleshoot your javascript for you, but my guess is that the problem has to do with the IDS.
since the elements "first" and "second" are in a repeat region, you are creating multiple instances of the same elements with the same ID's.
ID's for elements should be unique.
it is only loading the first one, because only the first uses a unique ID, the others are duplicates.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.