ckanext-tour is a CKAN extension that provides a guided tour feature for CKAN instances. It allows users to create interactive tours to showcase different features and functionalities of a CKAN instance.
- Create interactive tours with step-by-step instructions
- Highlight specific elements on CKAN pages
- Customize tour appearance and behavior
- Easily manage and edit tours through the CKAN admin interface
Once the extension is installed and enabled, you can start creating tours through the CKAN admin interface. Tours can be associated with specific pages or sections of your CKAN portal, and you can define multiple steps for each tour.
To start a tour, users can click on a tour trigger button or it can be started automatically, when user visits the specified page. The tour will guide them through the specified steps, highlighting the relevant elements on each page.
Each step contains next information:
- Title: A brief, engaging headline that summarizes the step.
- Query: Query to specify which element we're highlighting
- Intro: Text, that will be displayed on a step card
- Position: Specifies the placement of step card (top, right, bottom, left).
- Image (Optional): Visuals to complement the text, illustrate points, or add visual interest. GIF animation could be used here.
To create a tour for ckanext-tour via the admin panel UI, follow these steps:
- Log in to your CKAN instance as a sysadmin.
- Navigate to the
Configurationsection in the admin panel toolbar. - Find and click the
Add tourlink under theToursection to open the tour creation form. - Fill in the required information for the tour.
- You can add 1 or more steps for each tour.
- Once you have added all the information, press
Create tourbutton to submit the form and save the tour. - Now you can go to the
List of tourspage and see all the tours that were created.
Compatibility with core CKAN versions:
| CKAN version | Compatible? |
|---|---|
| 2.9 | not tested |
| 2.10+ | yes |
To install ckanext-tour:
-
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate -
Clone the source and install it on the virtualenv
git clone https://github.com/DataShades/ckanext-tour.git cd ckanext-tour pip install -e .
-
Add
tourto theckan.pluginssetting in your CKAN config file (by default the config file is located at/etc/ckan/default/ckan.ini). -
Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
To store tour images, you need to configure file storage for the extension. Add the following settings to your ckan.ini file:
ckanext.files.storage.tour_image.type = files:public_fs
ckanext.files.storage.tour_image.path = %(ckan.storage_path)s/storage/tours
ckanext.files.storage.tour_image.initialize = true
ckanext.files.storage.tour_image.public_prefix = /tours
ckanext.files.storage.tour_image.max_size = 10MiB
ckanext.files.storage.tour_image.supported_types = image
ckanext.files.storage.tour_link.type = files:link
ckanext.files.storage.tour_link.timeout = 5To modify the configuration of the extension, please make the changes through the site's user interface.
To run the tests, do:
pytest --ckan-ini=test.ini