Pull in contents of Index Block from DTD

roryreiff's Avatar


08 Jul, 2014 07:17 PM

I have an index block indexing the current page, and a DTD with block choosers. Is it possible to pull in the contents of an Index Block from a block chooser?

So, I can see the Index Block, and it's path. How do I then iterate over the files that are indexed in that block? Using Velocity to accomplish this. Thanks.

#set ($currentPage = $_XPathTool.selectSingleNode($contentRoot, "//system-page[@current]") )
#set ($assets = $_XPathTool.selectNodes($currentPage.getChild('system-data-structure'), "section") )

#foreach ($asset in $assets)

    #if ($asset.getChild('blockType').value == 'Index Block')
        ##asset here is an index block. How can I iterate over the system-files in this block?


  1. roryreiff closed this discussion on 08 Jul, 2014 07:18 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac