Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Author has books. Book has publisher.
- #set($publishers = [])
- #pullRelatedContent('Author-Book' "$authorInode" '0' 'name')
- #set($bookList = $list)
- #foreach($book in $bookList)
- #pullRelatedContent('Book-Publisher' "$book.inode" '0' 'title')
- $publishers.addAll($list)
- #end
- ## Now need to sort the collection.
- #set($list = $sorter.sort($publishers, "name"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement