Is it difficult with Couch tags? Maybe some simple trick? I have a cms:query, which gives me data in this format, like FOLDER-ID - PAGE-TITLE,So it can be folder1 - page1folder1 - page2folder2 - page3folder2 - page4