Liam W
in memoriam 1998-2020
Yeah think I caught that last night.
Turn off Debug mode
It's on for my IP only
Yeah think I caught that last night.
Turn off Debug mode
<xen:foreach loop="$notifications" key="$notificationId" value="$notification">
<xen:if is="{$notifications}">
Yes.
The code was all handled in template hooks before. They are deprecated and although they work now, I can't guarantee they'll stay working.
So I basically use the notices_prepare event now. It has access to the PAGE_CONTAINER template, a template object and container data. Basically everything I need all in one place.
I guess the only "down side" is that it requires Notices to be enabled. But, at the same time, having Notices enabled has no adverse effects, no additional query overhead on page load, etc.
Actually, yes it is intended.
Oh, but can this be fixed too?That error will only show in debug mode. Make sure debug mode is disabled or at least only enabled for your IP.
Ok, no problem then. I'll wait for that update then I'll update it on my live board too.Yes, in 1.7.3.
- No longer requires Notices to be enabled
- Resolves template error in debug mode if no Notifications are available
- Placeholders, e.g. {name} are now usable in titles
- ...and display (where possible) in previews.
- Previews in the Admin CP are better formatted, e.g. bullet points etc.
We use essential cookies to make this site work, and optional cookies to enhance your experience.