Skip to content

Cantemo Portal plugin that implements an action based on user selection on the search page. For Cantemo 4.1.2 or newer.

License

Notifications You must be signed in to change notification settings

Cantemo/SearchPageExportExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cantemo plugin that implements an action based on user selection on the search page.

Prerequisites

This plugin requires Cantemo 6.0.0 or later.

For Cantemo 5.x or 4.x, please see this version

Installation

To install this plugin, copy the contents of this directory to /opt/cantemo/portal/portal/plugins/, make sure the directory is readable by the Cantemo web-workers (default www-data).

For example - on a Cantemo system:

curl -L https://github.com/Cantemo/SearchPageExportExample/archive/master.zip > SearchPageExportExample-master.zip 
unzip SearchPageExportExample-master.zip 
mv SearchPageExportExample-master/search_page_export_example /opt/cantemo/portal/portal/plugins/
chown -R www-data:www-data /opt/cantemo/portal/portal/plugins/search_page_export_example
sudo service portal-web restart

Usage

The plugins adds an "Export CSV" action to the search page gear box, it is active when some items are selected:

Plugin in search page menu

Selecting the action shows a popup where user can select the data to export. Export produces a CSV file that the browser downloads:

Export popup

Example CSV output:

Item ID,Title,Creation date
VX-2,test2,2019-09-12T10:49:43.183Z
VX-1,test1,2019-09-12T10:49:34.498Z

About

Cantemo Portal plugin that implements an action based on user selection on the search page. For Cantemo 4.1.2 or newer.

Resources

License

Stars

Watchers

Forks