Get a single collection
collection_single
action allows to display a single ResourceSpace image collection, including collection data (e.g. title).
In this example the snippet output the photo collection with ID 26, with a limit of 12 images, using pThumb inside the xrsImg2 chunk template for image resizing.
[[xrs?
&action=`collection_single`
&id=`25`
&tpl=`xrsCollSingle1`
&tplImg=`xrsImg2`
&includeImg=`12`
]]
The Denki Project - Jishin Series (13)
![Image ID: 248](https://www.jpdn.net/assets/image-cache/pthumb/filestore/2/4/8_613b5f3d1480b22/248_717918b35d5c0b0.9894401e.jpg)
#18 (Jishin Series).
![Image ID: 247](https://www.jpdn.net/assets/image-cache/pthumb/filestore/2/4/7_dafc3640fdb965f/247_40104de8fbdfecc.9894401e.jpg)
#16 (JIshin Series)
![Image ID: 252](https://www.jpdn.net/assets/image-cache/pthumb/filestore/2/5/2_87a413eebeb0f95/252_93baf25b7fd56dd.9894401e.jpg)
#37 (Jishin Series)
![Image ID: 241](https://www.jpdn.net/assets/image-cache/pthumb/filestore/2/4/1_bd313166101b89c/241_4bcc623206f5cac.9894401e.jpg)
#02 (Jishin Series)
![Image ID: 242](https://www.jpdn.net/assets/image-cache/pthumb/filestore/2/4/2_f2e9d18a383576a/242_d0aaa8362e0df77.9894401e.jpg)
#03 (Jishin Series)
![Image ID: 251](https://www.jpdn.net/assets/image-cache/pthumb/filestore/2/5/1_363e45d1e34392e/251_954402f660077a2.9894401e.jpg)
#23 (Jishin Series)
![Image ID: 245](https://www.jpdn.net/assets/image-cache/pthumb/filestore/2/4/5_307f1f625c83642/245_9952eba9d9667a5.9894401e.jpg)
#14 (Jishin Series)
![Image ID: 249](https://www.jpdn.net/assets/image-cache/pthumb/filestore/2/4/9_a7192d21ee972e1/249_f7e5cee59f96578.9894401e.jpg)
#19 (Jishin Series)
![Image ID: 240](https://www.jpdn.net/assets/image-cache/pthumb/filestore/2/4/0_08e49db09fc7bce/240_36977cb40a23398.9894401e.jpg)
#01 (Jishin Series)
![Image ID: 243](https://www.jpdn.net/assets/image-cache/pthumb/filestore/2/4/3_994d155d4de9356/243_21533d84ae8e70b.9894401e.jpg)
#05 (Jishin Series)
![Image ID: 246](https://www.jpdn.net/assets/image-cache/pthumb/filestore/2/4/6_e3de6abae6e64e2/246_f7c6beee5b5f585.9894401e.jpg)
#15 (Jishin Series)
Using pThumb early
Another example, using pOptions snippet option:
[[xrs?
&action=`collection_single`
&id=`31`
&tpl=`xrsCollSingle1`
&tplImg=`xrsimg1`
&pOptions=`wl=100&hp=100&q=80`
&includeImg=`6`
]]
G-Cans (53)
![ResourceSpace image ID: 132](https://www.jpdn.net/assets/image-cache/pthumb/filestore/1/3/2_a102b65dd4f5f3c/132_ac644a210aa2ef6.b45504dd.jpg)
001-000053.001
![ResourceSpace image ID: 134](https://www.jpdn.net/assets/image-cache/pthumb/filestore/1/3/4_5a41eb6630fa47a/134_fd5cd1ee15a7368.b45504dd.jpg)
001-000053.003
![ResourceSpace image ID: 183](https://www.jpdn.net/assets/image-cache/pthumb/filestore/1/8/3_38f0b7bf5207fa7/183_424a5b6e505b1e0.b45504dd.jpg)
001-000053.166
![ResourceSpace image ID: 180](https://www.jpdn.net/assets/image-cache/pthumb/filestore/1/8/0_91587e224a62001/180_2ee2ac8ba9cb4a5.b45504dd.jpg)
001-000053.094
![ResourceSpace image ID: 146](https://www.jpdn.net/assets/image-cache/pthumb/filestore/1/4/6_3bd428cd95da62a/146_31183b79aa8f16a.b45504dd.jpg)
001-000053.015
![ResourceSpace image ID: 155](https://www.jpdn.net/assets/image-cache/pthumb/filestore/1/5/5_f5e99b4fe5c1580/155_0934ec2f7869188.b45504dd.jpg)
001-000053.024