I'm trying to generate a JSON index of different parts of my site. I need the ability to select a starting point, and the ability to exclude certain folders, which I'll index separately.

I also need to be able to automatically input unique IDs for each result.

So far I've tried:

  • entries:listing (doesn't include pages, can't exclude folders, generates ID with {{count}})
  • pages:listing (can't exclude folders generates ID with {{count}})
  • nav (can exclude folders, can't generate and ID)

Is there any way I can do this without needing to write an addon?

Thanks in advance.