Skip to content

Commit 5068ea2

Browse files
authored
Merge pull request #142 from StrykeSlammerII/patch-2
`id="alerts-page"` update
2 parents 5b1018e + 8ae373b commit 5068ea2

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

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

0 commit comments

Comments
 (0)