tour.tour.tour-example.yml

Same filename in other branches
  1. 4.0.x modules/tour_example/config/install/tour.tour.tour-example.yml
modules/tour_example/config/install/tour.tour.tour-example.yml

File

modules/tour_example/config/install/tour.tour.tour-example.yml

View source
  1. # This file defines the tour for our example page. There should be one tour
  2. # file for each tour that you create. These tour files should be placed in a
  3. # module's 'config' folder and named using the pattern
  4. # 'tour.tour.{tour-id}.yml'.
  5. #
  6. # Each tour file has two parts: 1) The tour properties, and 2) the tip
  7. # definitions.
  8. #
  9. #
  10. # TOUR PROPERTIES
  11. #
  12. # The tour properties define information that applies to the tour as a whole.
  13. # Properties that you can define for your tours include the following:
  14. #
  15. # id: Each tour should have a unique ID. This id is used in the
  16. # filename and appears as an ID in the HTML.
  17. # module: The machine name of the module containing your tour.
  18. # label: A human readable name for the tour.
  19. # status: A boolean, defining whether the tour is enabled.
  20. # langcode: A two-letter language code defining the language of your tour.
  21. # routes: An array of routes for which the tour is active. Specify these
  22. # as an array with route_name and optional route_params (also an
  23. # array). Route names are found in each module's routing.yml file.
  24. #
  25. #
  26. # TIP DEFINITIONS
  27. #
  28. # Here, you define each tip that you want to appear in your tour. Each of
  29. # the tips have properties that must be defined, including the following:
  30. #
  31. # id: Each tip needs a unique ID. This appears as an ID in the HTML.
  32. # plugin: The Tour API uses plugins for defining different types of
  33. # tips. The 'text' plugin (for making text tooltips) is provided
  34. # in core, but developers can define additional plugins for tips
  35. # containing images, video, or other interactions.
  36. # label: The lable for the tip. This will be rendered in an h3 element.
  37. # body: The body of the tip. HTML markup is allowed.
  38. # weight: Tips within a tour are ordered by weight, beginning with the
  39. # lowest number. Negative values are acceptable.
  40. # position: Defines the position of the tip, relative to its target.
  41. # Acceptable values include: 'auto', 'auto-start', 'auto-end',
  42. # 'top', 'top-start', 'top-end', 'bottom', 'bottom-start',
  43. # 'bottom-end', 'right', 'right-start', 'right-end', 'left',
  44. # 'left-start', 'left-end'. Default: auto.
  45. # selector: The HTML element you want to attach the tip to. You can use
  46. # classes (.class-name), ID's (#id-name), a combination of both,
  47. # and even complex elements like (.action-links
  48. # a[href="/admin/structure/forum/add/forum"])
  49. #
  50. # If you omit, the tip will be shown as modal instead of being
  51. # targeted to an element.
  52. #
  53. id: tour-example
  54. module: tour_example
  55. label: 'Tour an example admin page'
  56. langcode: en
  57. routes:
  58. - route_name: tour_example.description
  59. tips:
  60. introduction:
  61. id: introduction
  62. plugin: text
  63. label: 'Introduction'
  64. body: 'This is an example tour. Click "next" to continue through the tour.'
  65. weight: 1
  66. first-item:
  67. id: first-item
  68. plugin: text
  69. label: 'First Item'
  70. body: 'Tours are helpful for walking users through an unfamiliar admin interface.'
  71. weight: 2
  72. position: bottom
  73. selector: '#tour-target-1'
  74. second-item:
  75. id: second-item
  76. plugin: text
  77. label: 'Second Item'
  78. body: 'Individual tips can be positioned anywhere on the page.'
  79. weight: 3
  80. position: top
  81. selector: '#tour-target-2'
  82. third-item:
  83. id: third-item
  84. plugin: text
  85. label: 'Third Item'
  86. body: 'You can click the X in the top right corner of this box to close the tour at any time.'
  87. weight: 4
  88. position: bottom
  89. selector: '#tour-target-3'
  90. fourth-item:
  91. id: fourth-item
  92. plugin: text
  93. label: 'Fourth Item'
  94. body: 'When the tour is over, click "End Tour".'
  95. weight: 5
  96. position: left
  97. selector: '#tour-target-4'