I want to make an accordion that is dynamically taking in data, but where the contents can contain other accordions, with dynamic depth. Is this possible? Or would I manually need to create what would be the max depth of the accordions.
Is there a way to make a page that can accept any amount of parameters in the path and create an array? So for example if it's example.com/:slug and the url entered is example.com/data/data2, slug[0] would equal data and slug[1] would equal data2