Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
For those of us implementing tours on sites that don't already use bootstrap, it would be nice to be able to select to use bootstrap tour's supplied bootstrap-tour-standalone.min.css and bootstrap-tour-standalone.min.js files.
Comment | File | Size | Author |
---|---|---|---|
#10 | bootstrap_tour-use_of_standalone-2537400-10-D7.patch | 6.37 KB | OliverColeman |
#9 | bootstrap_tour-use_of_standalone-2537400-9-D7.patch | 5.39 KB | weri |
#8 | support_use_of-2537400-8.patch | 6.3 KB | kevineinarsson |
#2 | support_use_of-2537400-2.patch | 2.77 KB | tripper54 |
Comments
Comment #1
tripper54 CreditAttribution: tripper54 commentedPatch attached.
Comment #2
tripper54 CreditAttribution: tripper54 commentedHrm. Here's one that actually works.
Comment #3
attiks CreditAttribution: attiks at Attiks commentedWorks great, thanks
Comment #4
aklump CreditAttribution: aklump at In the Loft Studios commentedHere's another solution to this same issue: https://www.drupal.org/sandbox/aklump/2653886
Comment #5
candelas CreditAttribution: candelas as a volunteer commented@tripper54 Which version do you use? Version 0.5.0, which is the chosen in the module, has not bootstrap-tour-standalone.js or bootstrap-tour-standalone.css. If I change the version to 0.9.3, it works, but the tour doesn't automatically run.
Could you please put the steps for it to work? Thanks
Comment #6
tripper54 CreditAttribution: tripper54 commented@candelas I'm running version 0.10.2 of bootstrap tour, downloaded from github to sites/all/libraries.
Comment #7
candelas CreditAttribution: candelas as a volunteer commentedI confirm that works with 0.9.3 which is the first that has the alternative :) Thanks @tripper54
Comment #8
kevineinarsson CreditAttribution: kevineinarsson at Websystem for ComplianceOnline Ltd commentedI can confirm that 0.9.3 works well for me too.
I made some adjustments to the patch that I believe should be fixed too.
The code checks if bootstrap_tour exists as a library and if not, it downloads and places the JS and CSS in public://. This part of the code doesn't check if we want the standalone version. It also downloads version 0.6.1 which is hardcoded.
So two simple fixes. With the library we can determine which version should be downloaded. This would also let users call a hook_library_alter() to specify an override instead of hacking the module when letting the module handle the files.
I also changed version to 0.9.3 in the library declaration because I simply couldn't get 0.5.0 working on my end.
Comment #9
weri CreditAttribution: weri at Previon Plus AG commentedI updated the patch from @kevineinarsson, because the variable $variant was not available, when the library was not installed.
Comment #10
OliverColeman CreditAttribution: OliverColeman commentedweri's patch from #9 with the missing settings form added back into bootstrap_tour.admin.inc.