The standard way of repeating user tours in Moodle is a link with text in the footer of a theme. But I want this link to show up with an icon ( e.g. fa-repeat) in the topmenu with an explaining tooltip, this is more userfriendly to users IMO. It's no problem to set an icon and use the data-action, but to show up the icon only on pages where there is actually a tour, you have to use the class 'tool_usertours-resettourcontainer'. But this gives the whole language string. Is it possible to use an icon instead?
Please kindly read the forum rules.
Been too fast with posting. Version M3.6, using a child theme built on Boost
I would love to know how to do this too...on 3.6 using Fordson (based on Boost).
I believe that the user tours use user preferences, so the API for that should help with a solution. Not trivial but not too difficult either.
you might want to have a look at our plugin https://moodle.org/plugins/local_navbarplus from Ulm university. It has an option to add the Reset-Tour-Link to the Nav bar (which is probably what you mean with "topmenu"). See https://github.com/moodleuulm/moodle-local_navbarplus/blob/master/README.md#2-reset-user-tour-link for details.
I surely will have a look at the local plugin, if you have to add more icons then probably this is the best solution. For now I've found a simple solution:
- change the language string to only one letter, the T (from Tours)
- style the letter with CSS so that it will look and behave as the other nav-icons
It's not an icon but maybe it could be an acceptable workaround.