Is there a way to get unique values of the field of the specified content type in Bolt CMS (eg all unique dates of event content type)? Something like SELECT DISTINCT.
I know it's possible to create an extension for that but I'm wondering if there is an easier way.
IF you have access to query the database directly, you can try something like this:
SELECT distinct `contenttype`, `taxonomytype` FROM `bolt_taxonomy` WHERE `contenttype` = 'entries'
Which, on my very fresh install of Bolt 3.3.6 yields these results:
contenttype taxonomytype
entries categories
entries tags
So you would replace "entries" with "events" and "bolt_taxonomy" with the appropriate table you are looking at.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.