You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: pages/18.advanced/07.alert-stream/docs.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ Alternatively, you may choose to store alerts in the [user cache](/advanced/cach
91
91
92
92
In your client-side code, alerts are primarily handled by the `ufAlerts` jQuery plugin. The `/core/assets/userfrosting/js/uf-init.js` Javascript asset, which is loaded as part of the `js/main`[asset bundle](/asset-management/asset-bundles), will look for an element with an `id` of `alerts-page` and automatically fetch and render any alerts into this element when a page is first loaded.
93
93
94
-
A `div` element with `id="alerts-page"` is already included in the `core/templates/pages/abstract/default.html.twig` template, so any pages that extend this template will already have this included. For pages that do not extend this template, you will need to include the following wherever you want alerts to appear:
94
+
The `/pages/abstract/default.html.twig` template in the Admin-LTE sprinkle and the `/pages/abstract/base.html.twig` template in the Admin sprinkle both contain a `div` element with `id="alerts-page"`. For pages that do not extend either template, you will need to include the following wherever you want alerts to appear:
0 commit comments