modxcms/Gallery — pull request #26 by davidpede (2014-04-26 10:59:36+00:00)
Title: Add support for 'nth' based tpls

Sorry had to move to a different branch, please see previous conversation: https://github.com/modxcms/Gallery/pull/24

I have modified previous pr so that the usage is the same as getResource:

&thumbTpl_nN - Name of a chunk serving as resource template for every Nth resource, for example &thumbTpl_n2=`2nthTpl` would apply to any thumb divisible by 2.

Really struggled to understand the way jason implemented nth tpls in getResources. So not sure how backward compatible this pr version is either. Have a look and let me know what you think.