tour.tour.tour-example.yml

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

File

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. # location: Defines the location of the tip, relative to its target.
  41. # Acceptable values include: top, bottom, left, & right. If the
  42. # location is not defined, the default value (bottom) will be
  43. # used.
  44. # attributes: Attributes provdied to the tip for various purposes. Use the
  45. # following attributes to control the placement of the tip:
  46. #
  47. # data-id: Places this tip on the DOM element containing
  48. # this ID.
  49. # data-class: Places this tip on the DOM element containing
  50. # this class.
  51. #
  52. # If you omit both the .data-id and .data-class, the tip will be
  53. # shown as modal instead of being targeted to an element.
  54. #
  55. id: tour-example
  56. module: tour_example
  57. label: 'Tour an example admin page'
  58. langcode: en
  59. routes:
  60. - route_name: tour_example.description
  61. tips:
  62. introduction:
  63. id: introduction
  64. plugin: text
  65. label: 'Introduction'
  66. body: 'This is an example tour. Click "next" to continue through the tour.'
  67. weight: 1
  68. first-item:
  69. id: first-item
  70. plugin: text
  71. label: 'First Item'
  72. body: 'Tours are helpful for walking users through an unfamiliar admin interface.'
  73. weight: 2
  74. location: bottom
  75. attributes:
  76. data-id: tour-target-1
  77. second-item:
  78. id: second-item
  79. plugin: text
  80. label: 'Second Item'
  81. body: 'Individual tips can be positioned anywhere on the page.'
  82. weight: 3
  83. location: top
  84. attributes:
  85. data-id: tour-target-2
  86. third-item:
  87. id: third-item
  88. plugin: text
  89. label: 'Third Item'
  90. body: 'You can click the X in the top right corner of this box to close the tour at any time.'
  91. weight: 4
  92. location: bottom
  93. attributes:
  94. data-id: tour-target-3
  95. fourth-item:
  96. id: fourth-item
  97. plugin: text
  98. label: 'Fourth Item'
  99. body: 'When the tour is over, click "End Tour".'
  100. weight: 5
  101. location: left
  102. attributes:
  103. data-id: tour-target-4