Views Filter Object is a module which provides the glue between a View and a fieldable entity which holds configuration and filtering information for the View. This module makes it possible to design user interfaces for content creators where the content creator can create an entity, such as a Paragraph Item, which can configure a View which is then rendered to the page.
Sandbox url
https://www.drupal.org/sandbox/murrayw/2420495
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/murrayw/2420495.git views_filter_object
cd views_filter_object
Automated Review:
http://pareview.sh/pareview/httpgitdrupalorgsandboxmurrayw2420495git
In short, this module exposes the power of Views to editors, via entities such as Paragraph Items. Editors can select a few filters, define the number of items, a display and a few other things to define how they wish to alter a View. This effectively allows them to easily add filtered content to a page with the flexibility that Paragraphs offers. The site builder plays an important role as they define the view and the mapping between Paragraph Bundle and View. ie. they do they hard work and the editor reaps the reward of having an easy to configure widget.
This module is currently in production use on a couple of customer sites. It has been very successful at giving content creators the power and flexibility they need to build dynamic pages with recourse to Panelizer Overrides or the creation of custom View blocks etc.
Are there any similar modules?
Not that I know of. The closest I can think of would be Views Panes with exposed arguments. However, in this case the configuration is done by the site builder deep in the Panels interface. Views Filter Object exposes simple forms to editors in the node edit form and as such has a different audience. ie. It is designer for a simple but powerful editor experience.
Comment | File | Size | Author |
---|---|---|---|
#6 | automatic-results.txt | 2.86 KB | darol100 |
#1 | automatic-result.txt | 5.21 KB | naveenvalecha |
Comments
Comment #1
naveenvalechaComment #2
murrayw CreditAttribution: murrayw commentedA ticket was created for this and the issues have now been fixed.
https://www.drupal.org/node/2423371
Comment #3
naveenvalechaUpdated issue summary.I would recommend you, please help to review other project applications to get a review bonus back. This will put you on the high priority list, to speed up the process.
Comment #4
svnindia CreditAttribution: svnindia commentedHi,
Manual Review :
1) If your module provide hooks you can define it in .api.php
2) views_filter_object_ctools_plugin_directory: return string can be "plugins/" . $plugin;
3) views_filter_object_ct_edit_form : to access views_filter_object_get_optionsets_options function we are loading the module file, shall we keep it inside this file
Comment #5
radimklaskaHi svnindia, thanks for your feedback!
Done. ;-)
Having
if ($module == 'ctools' && !empty($plugin)) {
is pretty standard way of implementing this hook. I'm worried about loosing!empty($plugin)
beforeplugins/$plugin
. Is there any deeper reasoning behind this. I would rater leave it the way it is.Call stack does not allows that.
views_filter_object_get_optionsets_options()
usesviews_filter_object_get_optionsets()
which is pretty basic function and should be in .module file.We have also added new example module and we are working on more documentation.
Comment #6
darol100 CreditAttribution: darol100 as a volunteer and commentedHere are some minors warning from coder:
Pareview.sh is showing some complaining about errors/warning. http://pareview.sh/pareview/httpgitdrupalorgsandboxmurrayw2420495git
@radimklaska, since you guys working on more documentation I would recommend to add the hook_help, this can be very useful for site builders.
Comment #7
PA robot CreditAttribution: PA robot commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).
I'm a robot and this is an automated message from Project Applications Scraper.