Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I have created a custom module to get datas from a remote server (custom query).
But in the settings of my view, I don't see the aggregation options.
Do I Must add a "code" or anything in my custom module for access to this option ?
I think I have to add the Aggregate plugin in mymodule_views_plugin() function. But, I don't find examples to generate my code.
Thanks for your help !!!
Comment | File | Size | Author |
---|---|---|---|
#4 | no-aggregate-options.jpg | 154.78 KB | kumkum29 |
Comments
Comment #2
kumkum29 CreditAttribution: kumkum29 commentedComment #3
kumkum29 CreditAttribution: kumkum29 commentedHello,
I don't see how to get the Aggregate Options in views UI for my custom view.
I have tested this code in mymodule_views_plugins function:
But, no changes in views UI, no aggregate options... Can I reuse the class of the default aggregate plugin?
Can you explain me the processus to obtain these options in views UI. Do I create an additional class to extends the views_plugin_query?
Thanks for yours replies !!!
P.S. I get this notice with the above code > Notice : Array to string conversion in views_discover_plugins() (line 447 in /srv/data/web/vhosts/mysite.com/htdocs/sites/all/modules/views/includes/plugins.inc).
Comment #4
kumkum29 CreditAttribution: kumkum29 commentedHere an image to explain my problem:
Comment #5
MustangGB CreditAttribution: MustangGB commentedClosing this as outdated to tidy up a bit around here. If you're still having problems with the latest release please create a new issue.