Allow for tours to be shown only once

Created on 7 February 2017, over 7 years ago
Updated 1 May 2024, 5 months ago

Problem/Motivation

The tour module can be automatically started on page load by adding "?tour=1" to the URI. But in a lot of cases you only want to start the tour module once: the first time the user uses this new functionality.

Proposed resolution

Add an extra property to the yml config "show_only_once". This value can be TRUE or FALSE. When FALSE, the tour functionality does what is does in it's current state. When TRUE, the module sets a cookie for this (anonymous) user, indicating the tour has been showed (and completed). Next time when user goes to www.site.com/?tour=1, the tour won't start unless the "tour" button is clicked explicitly.

Remaining tasks

Implement new yml config property

User interface changes

None

API changes

Documentation on how to use this new property

Edit: I'm in the process of creating this patch. But I'm stuck on one thing: how can you update a config entity, without re-installing the module?

✨ Feature request
Status

Closed: won't fix

Version

1.0

Component
TourΒ  β†’

Last updated 2 days ago

Created by

πŸ‡§πŸ‡ͺBelgium robin.ingelbrecht

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024