Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Pull two different structures in dotCMS, then merge together and sort (must have variables with same name, like "title")
- #set($facilities = $dotcontent.pull("+structureName:Facility1 +Facility1.availableFor:* ",0,"Facility1.title"))
- #set($buildings = $dotcontent.pull("+structureName:Building1 +Building1.availableFor:* ",0,"Building1.title"))
- #set($rentals = $facilities)
- #set($_dummy = $rentals.addAll($buildings))
- #set($rentals = $sorter.sort($rentals, "title"))
- <ul>
- #foreach($rental in $rentals)
- <li>
- <a href="$rental.getUrlMap()">$rental.title</a>
- </li>
- #end
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment