Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.2] [Guided tours] Add missing auto start parameter in the user interface of tours #3224

Closed
jgerman-bot opened this issue Jul 25, 2024 · 0 comments · Fixed by #3225
Closed

Comments

@jgerman-bot
Copy link

New language relevant PR in upstream repo: joomla/joomla-cms#43690 Here are the upstream changes:

Click to expand the diff!
diff --git a/administrator/components/com_guidedtours/forms/tour.xml b/administrator/components/com_guidedtours/forms/tour.xml
index dcb10e4aa949c..5ace45df4fad2 100644
--- a/administrator/components/com_guidedtours/forms/tour.xml
+++ b/administrator/components/com_guidedtours/forms/tour.xml
@@ -160,4 +160,16 @@
 		>
 		<option value="*">JALL</option>
 	</field>
+
+	<field
+		name="autostart"
+		type="radio"
+		label="COM_GUIDEDTOURS_AUTOSTART_LABEL"
+		description="COM_GUIDEDTOURS_AUTOSTART_DESC"
+		layout="joomla.form.field.radio.switcher"
+		default="0"
+		>
+		<option value="0">JNO</option>
+		<option value="1">JYES</option>
+	</field>
 </form>
diff --git a/administrator/components/com_guidedtours/tmpl/tour/edit.php b/administrator/components/com_guidedtours/tmpl/tour/edit.php
index e115cab0af1ee..5bef1f3549f89 100644
--- a/administrator/components/com_guidedtours/tmpl/tour/edit.php
+++ b/administrator/components/com_guidedtours/tmpl/tour/edit.php
@@ -73,6 +73,7 @@
                         'access',
                         'language',
                         'extensions',
+                        'autostart',
                         'note',
                     ];
 
diff --git a/administrator/language/en-GB/com_guidedtours.ini b/administrator/language/en-GB/com_guidedtours.ini
index f7e1789ed2171..e45fbb95000c9 100644
--- a/administrator/language/en-GB/com_guidedtours.ini
+++ b/administrator/language/en-GB/com_guidedtours.ini
@@ -4,6 +4,8 @@
 ; Note : All ini files need to be saved as UTF-8
 
 COM_GUIDEDTOURS="Guided Tours"
+COM_GUIDEDTOURS_AUTOSTART_DESC="Start the tour automatically when a user reaches the context in which the tour should be displayed."
+COM_GUIDEDTOURS_AUTOSTART_LABEL="Auto Start"
 COM_GUIDEDTOURS_CONFIGURATION="Guided Tours: Options"
 COM_GUIDEDTOURS_DESCRIPTION="Description"
 COM_GUIDEDTOURS_DESCRIPTION_TRANSLATION="Description (%s)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment