X-Git-Url: https://scm.cri.ensmp.fr/git/Portfolio.git/blobdiff_plain/992dde21cc051b895d8e5e98509c27edc4e3e304..c6109e6db4a3f1f8d0a79a324f56a9f0281522bc:/skins/portfolio_thumbnails_tail.py diff --git a/skins/portfolio_thumbnails_tail.py b/skins/portfolio_thumbnails_tail.py index 4f47bf3..8e77386 100644 --- a/skins/portfolio_thumbnails_tail.py +++ b/skins/portfolio_thumbnails_tail.py @@ -1,6 +1,14 @@ -##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)) +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