modxcms / Collections

An Extra for MODX Revolution that provides for Resource Collections managed by CollectionContainer Resources
GNU General Public License v2.0
53 stars 37 forks source link

Collection. Columns. Remove duplicate [[id]] column check #352

Closed DmitryFX closed 2 years ago

DmitryFX commented 2 years ago

I think such a setup is not a mistake and must be allowed: id col (default) - is default, not removable. id col (user added) - for getting some resource-related data, based on resource id.

image

DmitryFX commented 2 years ago

Ah.. I hurried too much to create an issue. Render Snippet gets full information about the resource and [id] can be easily retrieved with $modx->getOption('row', $scriptProperties, '')['id'];

Nice and flexible!