xRS MODX extra

xRS Collection single displays a single ResourceSpace collection

Logo ResourceSpace Logo Wordpress Logo Prestashop Logo Joomla

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

#18 (Jishin Series).

Image ID: 247

#16 (JIshin Series)

Image ID: 252

#37 (Jishin Series)

Image ID: 241

#02 (Jishin Series)

Image ID: 242

#03 (Jishin Series)

Image ID: 251

#23 (Jishin Series)

Image ID: 245

#14 (Jishin Series)

Image ID: 249

#19 (Jishin Series)

Image ID: 240

#01 (Jishin Series)

Image ID: 243

#05 (Jishin Series)

Image ID: 246

#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
001-000053.001
ResourceSpace image ID: 134
001-000053.003
ResourceSpace image ID: 183
001-000053.166
ResourceSpace image ID: 180
001-000053.094
ResourceSpace image ID: 146
001-000053.015
ResourceSpace image ID: 155
001-000053.024