It looks like it鈥檚 currently not possible to use the distinct() method on element queries. I wonder if I鈥檓 approaching this the wrong way or if it鈥檚 simply not possible right now.
{% set plainTexts = craft.entries()
.select('field_plainText')
.distinct()
.column() %}
Yii docs:
http://www.yiiframework.com/doc-2.0/yii-db-query.html#distinct()-detail
Added distinct() support for RC10. Note that you will most likely need to clear out the default orderBy param as well:
{% set plainTexts = craft.entries()
.select('field_plainText')
.distinct()
.orderBy(null)
.column() %}
Most helpful comment
Added
distinct()support for RC10. Note that you will most likely need to clear out the defaultorderByparam as well: