Skip to content

Commit

Permalink
Edit paragraph for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
StrykeSlammerII authored May 5, 2024
1 parent 60cc7ec commit 8ae373b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/18.advanced/07.alert-stream/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Alternatively, you may choose to store alerts in the [user cache](/advanced/cach

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.

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:
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:

```html
<div id="alerts-page"></div>
Expand Down

0 comments on commit 8ae373b

Please sign in to comment.