X-Git-Url: https://svn.cri.ensmp.fr/git/Portfolio.git/blobdiff_plain/f21f382e9b2de5862e6cbb82c856b8a1c8c6c481..20d32cad15428a0a8d893a8e248d925b004df2c8:/skins/portfolio_thumbnails_tail.py?ds=sidebyside diff --git a/skins/portfolio_thumbnails_tail.py b/skins/portfolio_thumbnails_tail.py index 819e759..8e77386 100644 --- a/skins/portfolio_thumbnails_tail.py +++ b/skins/portfolio_thumbnails_tail.py @@ -1,4 +1,14 @@ -##parameters=start=0, size=10 +##parameters=start=0, size=10, container_type='portfolio' options={} -options.update(context.getPhotosInfos(context)) +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)) +elif container_type == 'selection' : + options.update(context.getSelectionPhotosInfos(pho_start=start, + batch_size=size)) return context.portfolio_thumbnails_tail_template(**options) \ No newline at end of file