rohallion / localgov_elections_reporting
This package is abandoned and no longer maintained.
The author suggests using the localgovdrupal/localgov_elections_reporting package instead.
Module to report on elections for LocalGovDrupal sites.
v1.0.4-alpha
2024-01-09 10:35 UTC
Requires
- cweagans/composer-patches: ^1.6
- drupal/autocomplete_deluxe: ^2.0
- drupal/charts: ^5.0.x-dev@dev
- drupal/color_field: ^3.0
- drupal/default_content: ^2.0
- drupal/entity_extra_field: ^2.0@alpha
- drupal/field_formatter_class: ^1.5
- drupal/paragraphs_table: ^1.6
- drupal/term_reference_tree: ^2.0
- drupal/views_field_view: ^1.0@beta
- drupal/views_simple_math_field: ^3.0
- highcharts/3d: 8.2.2
- highcharts/accessibility: 8.2.2
- highcharts/export-data: 8.2.2
- highcharts/exporting: 8.2.2
- highcharts/highcharts: 8.2.2
- highcharts/more: 8.2.2
This package is auto-updated.
Last update: 2024-04-12 10:03:03 UTC
README
Adds capability to report on Elections
Before adding to site
Add the following to the sites main composer.json in the "repositories": [... ]
section.
{
"type": "package",
"package": {
"name": "highcharts/highcharts",
"version": "8.2.2",
"type": "drupal-library",
"extra": {
"installer-name": "highcharts"
},
"dist": {
"url": "https://code.highcharts.com/8.2.2/highcharts.js",
"type": "file"
},
"require": {
"composer/installers": "^1.0 || ^2.0"
}
}
},
{
"type": "package",
"package": {
"name": "highcharts/more",
"version": "8.2.2",
"type": "drupal-library",
"extra": {
"installer-name": "highcharts_more"
},
"dist": {
"url": "https://code.highcharts.com/8.2.2/highcharts-more.js",
"type": "file"
},
"require": {
"composer/installers": "^1.0 || ^2.0"
}
}
},
{
"type": "package",
"package": {
"name": "highcharts/exporting",
"version": "8.2.2",
"type": "drupal-library",
"extra": {
"installer-name": "highcharts_exporting"
},
"dist": {
"url": "https://code.highcharts.com/8.2.2/modules/exporting.js",
"type": "file"
},
"require": {
"composer/installers": "^1.0 || ^2.0"
}
}
},
{
"type": "package",
"package": {
"name": "highcharts/export-data",
"version": "8.2.2",
"type": "drupal-library",
"extra": {
"installer-name": "highcharts_export-data"
},
"dist": {
"url": "https://code.highcharts.com/8.2.2/modules/export-data.js",
"type": "file"
},
"require": {
"composer/installers": "^1.0 || ^2.0"
}
}
},
{
"type": "package",
"package": {
"name": "highcharts/accessibility",
"version": "8.2.2",
"type": "drupal-library",
"extra": {
"installer-name": "highcharts_accessibility"
},
"dist": {
"url": "https://code.highcharts.com/8.2.2/modules/accessibility.js",
"type": "file"
},
"require": {
"composer/installers": "^1.0 || ^2.0"
}
}
},
{
"type": "package",
"package": {
"name": "highcharts/3d",
"version": "8.2.2",
"type": "drupal-library",
"extra": {
"installer-name": "highcharts_3d"
},
"dist": {
"url": "https://code.highcharts.com/8.2.2/highcharts-3d.js",
"type": "file"
},
"require": {
"composer/installers": "^1.0 || ^2.0"
}
}
}
Adding to site
run composer require rohallion/localgov_elections_reporting
Block Placement
You will need to place the "Elections menu" block in the "Sidebar first" area of your LocalGov Drupal theme. It should be restricted to show on only the following pages:
/election/*
/election/*/*
/*/*/results
/*/*/share
/*/*/electoral-map
/*/*/candidates