Download the PHP package matejch/yii2-page-guide without Composer
On this page you can find all versions of the php package matejch/yii2-page-guide. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-page-guide
Page guide extension
Ability to add guide or assistant to pages for better user orientation or explaining functionality to user
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the requirement section of your composer.json
file.
Setup
1. First migrate table
It is necessary for saving rules on pages
2. Add to modules in your web.php
3. Add widget on pages you want to use page guide on
By default, it is rendered in place you put widget on
If you want it to be positioned on right top side, use widget option 'btnPositionCss'
4. Additional intro options from intro.js library
If you want you can add intro.js option into widget with attribute introOptions
More options here intro.js
5. Optional
Widget now also supports intro.js callbacks
Available callbacks are oncomplete
onexit
onbeforeexit
onchange
onbeforechange
onafterchange
Usage
Access index and form for creation of rules with
1. Create new set of rules
Insert url on your yii web page into first input
Press button go to page that opens url in new window
From this window drag and drop elements you want to use into previous window
You can also set it by hand, just add step number, element id and text
check image of page guide form
2. Add widget to the page you want to use it on
When you are in creator mode, every draggable element is highlighted with blue dashed border
By default, in creator mode all visible input elements on page are set as draggable, and if form is detected on page
also, all elements with form-group class are set.
With widget option 'selectors' (array), you can set multiple class names or ids or other valid css selectors
for picking draggable elements in creator mode.
Here is example how it looks, when rules are set and user can display guide/assistant