Sorry if I was not explaining very well...
All storage and display for GJ Events is working very well and I correctly display a formatted string depending on the value stored.
So for group owners with events everything is perfect.
The question was referring to a CB field used to display subscribed events by another user.
The field is a query dropdown field with single select and the query is :
Code:
SELECT e.* FROM `#__groupjive_plugin_events` AS e JOIN `#__groupjive_plugin_events_attendance` AS a
on a.`user_id` = '[user_id]' AND a.`event` = e.`id` JOIN `#__groupjive_groups` AS b ON b.`id` = e.`group` AND b.`category` = '13'
then the options are
Code:
Value column : Id
Label Column : title
Group column : params
The problem is to get the correct formatting output for params in the value displayed in the drop down.
For now it shows the grouping as {"dropdown":"10"} and I cannot see how to format this in the CB field.
Any idea ?