Adds a page to allow users to search through pages added with the ckanext-pages extension. NOTE: currently this only works for pages and not for blogs
python3
ckan >= 2.10
ckanext-sitesearch
ckanext-pages
- Activate CKAN virtual enviornment (default location in source install)
source /usr/lib/ckan/default/bin/activate
- Clone git repo
git clone https://github.com/Drexel-UHC/ckanext-pagessearch.git
- Install package and depdendencies
pip install ckanext-pagesearch
pip install ckanext-pagessearch/requirements.txt
- Add pagessearch to ckan.plugins in ckan.ini
- Restart ckan
ckanext.pagessearch.type_name (default: "page"): name of page type. Displays in the query results string on top of page, e.g. "2 {type_name}s found"
ckanext.pagessearch.pages_search_url (default: "/pages_search"): the endpoint where the search page will be added