Skip to content

Commit 8ae373b

Browse files
authoredMay 5, 2024
Edit paragraph for readability
1 parent 60cc7ec commit 8ae373b

File tree

1 file changed

+1
-1
lines changed
  • pages/18.advanced/07.alert-stream

1 file changed

+1
-1
lines changed
 

‎pages/18.advanced/07.alert-stream/docs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Alternatively, you may choose to store alerts in the [user cache](/advanced/cach
9191

9292
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.
9393

94-
A `div` element with `id="alerts-page"` is already included in the Admin-LTE sprinkle via the `/pages/abstract/default.html.twig` template and in the Admin sprinkle via the `/pages/abstract/base.html.twig` template. Any pages that extend one of these templates will already have this included. For pages that do not extend either 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:
9595

9696
```html
9797
<div id="alerts-page"></div>

0 commit comments

Comments
 (0)
Please sign in to comment.