Tour Application
Let users create tour guides for any page |
Type | XAR |
Category | |
Developed by | |
Rating | |
License | GNU Lesser General Public License 2.1 |
Bundled With | XWiki Standard |
Description
This application provides for the users a possibility to create tours for every page they want.
A tour represents the best way to understand the most important features inside a page. As you’ll see, the tour walks users step by step through page elements.
If the user doesn't like this kind of help, she can choose to close the tour without displaying all the steps. Then, a button on the bottom right of the page is displayed to show back the tour:
Access
To create or to see all available tours, you can access the Tour application by using the application panels:
You will see the following page:
A tour will start when the Target Page or a Target Class entry is visited. A tour having the Target Page specified could be also started by clicking on the "Launch" link in the live table.
How to create a new Tour
Go to the Tour Application, and click on "Add New Entry". Select a name for your tour:
Then, fill the following form:
The fields are:
- Description (optional): fill this field to have a description of your tour. This is purely for documentation purpose, it's not used by the application.
- Active: whether or not the Tour should be displayed. By default, this option is enabled. You can disable a tour until it is fully written to avoid having users seeing an incomplete tour.
- Target Page: the reference of the page where the tour should be displayed (example: Main.WebHome).
- Target Class: the class name for which entries the tour should be displayed (example: XWiki.XWikiUsers)
Then save the page.
Adding steps
Edit the tour and click
button to create new steps.The fields are:
- Element: CSS selector regarding the element on the page you want to put the popover on. If the element is not specified, the popover will be displayed in the center of the page.
- Title: the title displayed in the step. .
- Content: the content of the step. .
- Placement: popover's position towards its element (‘top’,’right’,’bottom’,’left’).
- Order: step index (the lower the number is, the first the step is displayed).
- Backdrop: check it if you want to hide all the elements of the page that are not concerned by this step.
- Target Page: the reference of the page where the step should be displayed (example: Main.WebHome).
- Target Action: the page action to use when visiting the page (example: edit).
- Query String: what query parameters to add to the URL when visiting (example: editor=wiki).
- Reflex: whether or not to go to the next step when clicking the target element.
You can create any number of steps you want.
Then your tour is enabled. Go to the page on which the tour should be visible:
If you have different steps, you can click on the "next" and "previous" buttons:
You can select which element to show:
Force the display of a tour
The user can close a tour, and then his choice is saved on his browser. However, you can force the display of the tour adding ?startTour=true to the URL of the page.
How to create internationalized tour
First, you need to create a translation page and set the scope to "wiki".
Then, in your step:
- you can put directly the translation key in the "title" field, it will be rendered.
- you can use the {{translation key="someKey" /}} macro in the "content" field, like any other macro.
Prerequisites & Installation Instructions
We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.
You can also use the following manual method, which is useful if this extension cannot be installed with the Extension Manager or if you're using an old version of XWiki that doesn't have the Extension Manager:
- Log in the wiki with a user having Administration rights
- Go to the Administration page and select the Import category
- Follow the on-screen instructions to upload the downloaded XAR
- Click on the uploaded XAR and follow the instructions
- You'll also need to install all dependent Extensions that are not already installed in your wiki
Release Notes
v15.9+
The application has been moved to xwiki-platform. The old contrib extension has been moved to the attic.
See XWiki Release Notes for following release notes.
v1.3.8
v1.3.7
The following translations have been updated with this release:
v1.3.6
The following translations have been updated with this release:
v1.3.5
v1.3.4
v1.3.3
v1.3.2
v1.3.1
v1.3
v1.2
v1.1
v1.0.4
v1.0.3
v1.0.2
v1.0.1
The following translations have been updated:
v1.0
v0.2.4
v0.2.3
v0.2.2
Failed attempt to fix a bug.
v0.2.1
Failed attempt to fix a bug.
v0.2
The following translations have been updated:
v0.1
Dependencies
Dependencies for this extension (org.xwiki.platform:xwiki-platform-tour-ui 16.10.2):
- org.xwiki.platform:xwiki-platform-webjars-api 16.10.2
- org.webjars:requirejs 2.3.7
- org.webjars:jquery 3.7.1
- org.webjars:bootstrap-tour 0.12.0
- org.xwiki.platform:xwiki-platform-appwithinminutes-ui 16.10.2
- org.xwiki.platform:xwiki-platform-security-authentication-script 16.10.2