Advertisement
Guest User

dotCMS paginate (pageContent) results of pullRelatedContent

a guest
Sep 7th, 2010
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. ## Author has books. Book has publisher.
  2. #set($publishers = [])
  3. #pullRelatedContent('Author-Book' "$authorInode" '0' 'name')
  4. #set($bookList = $list)
  5. #foreach($book in $bookList)
  6. #pullRelatedContent('Book-Publisher' "$book.inode" '0' 'title')
  7. $publishers.addAll($list)
  8. #end
  9. ## Now need to sort the collection.
  10. #set($list = $sorter.sort($publishers, "name"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement