stephenjbell

dotCMS 1.9 Show Thumbnails of Images in Folder

May 30th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. <link rel="stylesheet" href="/lucid/academics/js/fancybox/jquery.fancybox-1.3.4.css" />
  2. <script src="/lucid/js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
  3. <script type="text/javascript">
  4. $(document).ready(function() {
  5. $('.fancybox').fancybox({'titlePosition':'inside','type':'image'})
  6. });
  7.  
  8. </script>
  9.  
  10. <section id="texas-office-photos" class="ui-tabs-panel ui-widget-content ui-corner-bottom">
  11. <h1 style="display: none; ">Photos</h1>
  12. <p>
  13. <ul id="flickrSetsList">
  14. #set ($fileRepository_filesList = $macro.getfileRepository("/about/texas-office/images/slideshow", "false", $request))
  15. #foreach($photo in $fileRepository_filesList)
  16. <li>
  17. <a class="fancybox" href="http://www.oc.edu/contentAsset/image/$!{photo.inode}/fileAsset?byInode=1&filter=Resize,Jpeg&resize_w=750&crop_x=0&crop_y=0&jpeg_q=85">
  18. <img src="http://www.oc.edu/contentAsset/image/$!{photo.inode}/fileAsset?byInode=1&filter=Resize,Crop,Jpeg&resize_w=120&crop_w=120&crop_h=120&crop_x=0&crop_y=0&jpeg_q=85" alt="$!{photo.title}" />
  19. </a>
  20. </li>
  21. #end
  22. <div style="clear:both;"></div>
  23. </ul>
  24. </p>
  25. </section>
Advertisement
Add Comment
Please, Sign In to add comment