X-Git-Url: https://scm.cri.mines-paristech.fr/git/Portfolio.git/blobdiff_plain/1ea27804743fca19dca58a1f8e662ccf7787f652..6f4e2f7cda25365c0ca9d1597270200d049daa61:/skins/portfolio_thumbnails_tail.py?ds=sidebyside diff --git a/skins/portfolio_thumbnails_tail.py b/skins/portfolio_thumbnails_tail.py index 4f47bf3..9765629 100644 --- a/skins/portfolio_thumbnails_tail.py +++ b/skins/portfolio_thumbnails_tail.py @@ -1,6 +1,11 @@ -##parameters=start=0, size=10 +##parameters=start=0, size=10, container_type='portfolio' options={} -options.update(context.getPhotosInfos(context, - pho_start=start, - batch_size=size)) +if container_type == 'portfolio' : + options.update(context.getPhotosInfos(context, + pho_start=start, + batch_size=size)) +elif container_type == 'lightbox' : + options.update(context.getLightboxPhotosInfos(context, + pho_start=start, + batch_size=size)) return context.portfolio_thumbnails_tail_template(**options) \ No newline at end of file