opengeek/getResources — pull request #67 by rponudic (2012-04-04 09:09:15+00:00)
Title: Added placeholder variables to snippet

There is already the possibility to select the template for the first, last,... items, but if you just want to set some CSS class on a container it is quite complex to create chunks.

This idea was inspired by the getImageList-Snippet from MIGX, you can see the usage of these placeholders here:
http://rtfm.modx.com/display/ADDON/MIGX.Frontend-Usage#MIGX.Frontend-Usage-tplplaceholders

According to the getImageList-Snippet I now added the same placeholders for the getResource-Snippet:

- _first: true if item is the first item in list
- _last: true if item is the last item in list
- _alt: true every second row