ODM Dashboards
Wordpress plugin for exposing widgets with data visualizations
by Alex Corbi (mail@lifeformapps.com) · github.com/opendevelopmentmekong/wp-odm_dash · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/opendevelopmentmekong/wp-odm_dash/archive/refs/heads/main.zipwpdash
Wordpress plugin for exposing widgets with data visualizations
Description
Features
widgets
Shortcodes
wpdash_dataviz
This plugin exposes a shortcode to allow editors placing data visualizations in the content of wordpress posts. It can receive following parameters:
id: the id of the data visualization to show. name: alternatively to id, the name (slug) of the dataviz can be specified. width: The width in % or px. Default: 100% height: The height in % or px. Default: 300px hide_description: Set to true if no description should be shown along with the data visualization.
Examples:
[wpdash_dataviz id="123456"]
[wpdash_dataviz name="some-dataviz"]
[wpdash_dataviz id="123456" width="100%" height="300px"]
WPDASH Show dataviz
This widget allows editors to place a certain Data visualization on the front-end by adding it to a widget area.
In order to configure it, it suffices with specifying its id on the configuration box under Appearance > Widgets
Installation
- Either download the files as zip or clone
git clone https://github.com/OpenDevelopmentMekong/wpdash.gitinto the Wordpress plugins folder. - Install dependencies with bower (http://bower.io)
bower install - Activate the plugin through the 'Plugins' menu in WordPress
Development
- Install bower http://bower.io/
- Edit bower.json for adding/modifying dev dependencies versions
- Install dependencies with
bower install
Requirements
Uses
Testing
Tests are found on /tests and can be run with phpunit tests
Continuous deployment
Everytime code is pushed to the repository, travis will run the tests available on /tests. In case the code has been pushed to master branch and tests pass, the _ci/deploy.sh script will be called for deploying code in CKAN's DEV instance. Analog to this, and when code from master branch has been tagged as release, travis will deploy to CKAN's PROD instance automatically.
For the automatic deployment, the scripts on _ci/ are responsible of downloading the odm-automation repository, decrypting the odm_tech_rsa.enc private key file ( encrypted using Travis-ci encryption mechanism) and triggering deployment in either DEV or PROD environment.
Copyright and License
This material is copyright (c) 2014-2015 East-West Management Institute, Inc. (EWMI).
It is open and licensed under the GNU General Public License (GPL) v3.0 whose full text may be found at: