DS: Only pull unique entries
This is an open discussion with 1 reply, filed under General.
Search
Nope this isn’t provided with the data source functionality in Symphony. You could write a custom data source to do this yourself since this is trivial to achieve using SQL (DISTINCT/COUNT/GROUP BY).
Create an account or sign in to comment.
Hi
I have a datasource of entries that have a text location field and I’m trying to produce a ‘tagcloud’ for these locations.
Is there any way of filtering the entries so that only the entries with a unique ‘location’ field are pulled, ideally I’d like a count of how many occurrences there are of each.
I know that I could do this with xlst but was just weary of the performance implications, especially if there are hundreds if not thousands of entries as I need to be able to pull the most popular entries
Thanks