-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
543 additions
and
144 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Entity Reference View Widget | ||
|
||
This module provides an advanced Entity Reference widget that uses a view for | ||
selecting items. The view can be paginated and have exposed filters. | ||
|
||
## Installation and Usage | ||
|
||
1) Install this module using the [official Backdrop CMS instructions](https://backdropcms.org/guide/modules) | ||
2) Add the display "Entityreference View Widget" to your view. | ||
3) Add "Entity Reference View Widget Checkbox" among the fields. | ||
4) In the Field UI for the Entity Reference field select "View" as the widget | ||
and on the next page select your View from the dropdown. | ||
|
||
## Issues | ||
|
||
- Bugs and Feature requests should be reported in the [Issue Queue](https://github.com/backdrop-contrib/entityreference_view_widget/issues). | ||
|
||
## Current Maintainers | ||
|
||
- [Laryn Kragt Bakker](https://github.com/laryn). | ||
- Collaboration and co-maintainers welcome. | ||
|
||
## Credits | ||
|
||
- Ported to Backdrop CMS by [Laryn Kragt Bakker](https://github.com/laryn). | ||
- Current development is supported by [Aten Design Group](https://aten.io). | ||
- Maintainers on drupal.org include [bojanz](https://www.drupal.org/u/bojanz), | ||
[Damien Tournoud](https://www.drupal.org/u/damien-tournoud), | ||
[jsacksick](https://www.drupal.org/u/jsacksick), | ||
[malovanets](https://www.drupal.org/u/malovanets), | ||
[andyg5000](https://www.drupal.org/u/andyg5000), and | ||
[jamsilver](https://www.drupal.org/u/jamsilver). | ||
|
||
## License | ||
|
||
This project is GPL v2 software. See the LICENSE.txt file in this directory for | ||
complete text. |
This file was deleted.
Oops, something went wrong.
118 changes: 118 additions & 0 deletions
118
config/views.view.entityreference_view_widget_sample.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
{ | ||
"_config_name": "views.view.entityreference_view_widget_sample", | ||
"name": "entityreference_view_widget_sample", | ||
"description": "This is a basic view ready to use with entity reference view widget. Feel free to edit it or create another.", | ||
"tag": "default", | ||
"disabled": false, | ||
"base_table": "node", | ||
"human_name": "Entiy Reference View Widget Sample View", | ||
"module": "entityreference_view_widget", | ||
"display": { | ||
"default": { | ||
"display_title": "Master", | ||
"display_plugin": "default", | ||
"display_options": { | ||
"query": { | ||
"type": "views_query", | ||
"options": [] | ||
}, | ||
"use_more_always": false, | ||
"access": { | ||
"type": "perm" | ||
}, | ||
"cache": { | ||
"type": "none" | ||
}, | ||
"exposed_form": { | ||
"type": "basic" | ||
}, | ||
"pager": { | ||
"type": "full" | ||
}, | ||
"style_plugin": "table", | ||
"fields": { | ||
"entityreference_view_widget": { | ||
"id": "entityreference_view_widget", | ||
"table": "node", | ||
"field": "entityreference_view_widget", | ||
"label": "", | ||
"element_label_colon": false, | ||
"ervw": { | ||
"force_single": 0 | ||
} | ||
}, | ||
"title": { | ||
"id": "title", | ||
"table": "node", | ||
"field": "title", | ||
"label": "", | ||
"alter": { | ||
"word_boundary": false, | ||
"ellipsis": false | ||
} | ||
} | ||
}, | ||
"sorts": { | ||
"created": { | ||
"id": "created", | ||
"table": "node", | ||
"field": "created", | ||
"order": "DESC" | ||
} | ||
}, | ||
"filters": { | ||
"status": { | ||
"id": "status", | ||
"table": "node", | ||
"field": "status", | ||
"value": 1, | ||
"group": 1, | ||
"expose": { | ||
"operator": false | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"entityreference_view_widget_1": { | ||
"display_title": "Entity Reference View Widget", | ||
"display_plugin": "entityreference_view_widget", | ||
"display_options": { | ||
"query": { | ||
"type": "views_query", | ||
"options": [] | ||
}, | ||
"defaults": { | ||
"title": false, | ||
"use_ajax": false, | ||
"style_plugin": false, | ||
"style_options": false, | ||
"row_plugin": false, | ||
"row_options": false | ||
}, | ||
"style_plugin": "table", | ||
"style_options": { | ||
"columns": { | ||
"entityreference_view_widget": "entityreference_view_widget", | ||
"title": "title" | ||
}, | ||
"default": "-1", | ||
"info": { | ||
"entityreference_view_widget": { | ||
"align": "", | ||
"separator": "", | ||
"empty_column": 0 | ||
}, | ||
"title": { | ||
"sortable": 0, | ||
"default_sort_order": "asc", | ||
"align": "", | ||
"separator": "", | ||
"empty_column": 0 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
name = Entity Reference View Widget | ||
description = Provides a complex widget that embeds a view for selecting items. | ||
core = 7.x | ||
backdrop = 1.x | ||
type = module | ||
package = Fields | ||
|
||
dependencies[] = entityreference | ||
dependencies[] = views | ||
dependencies[] = ctools | ||
|
||
files[] = views/entityreference_view_widget_handler_field_checkbox.inc | ||
files[] = views/entityreference_view_widget_plugin_display.inc | ||
files[] = views/entityreference_view_widget.views_default.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.