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
So I just got into using notifications and feel that the messages have an overly strict template. Fixed date format, requires a from-user and click url.
Wanted to gather some thoughts, expanding the Interface/s to require a getTemplateName ("YourBundle::template.html.twig") that replaces the normal template if found.
I'm still mulling that in my head. the alternative is.. I make a whole new event, a more generic notification that allows you to customise the navbar icon (currently stuck with bell for general, envelope for message) and uses the same custom template solution as above for rendering each item.
Currently got a bad cold, so if any of this has an easier solution or just sounds like fever dreams, please, let me know.
The text was updated successfully, but these errors were encountered:
A general solution would be to use a single kind of navbar event which provides some kind of attributed storage (like the session flashbag does).
Like so:
So I just got into using notifications and feel that the messages have an overly strict template. Fixed date format, requires a from-user and click url.
Wanted to gather some thoughts, expanding the Interface/s to require a getTemplateName ("YourBundle::template.html.twig") that replaces the normal template if found.
I'm still mulling that in my head. the alternative is.. I make a whole new event, a more generic notification that allows you to customise the navbar icon (currently stuck with bell for general, envelope for message) and uses the same custom template solution as above for rendering each item.
Currently got a bad cold, so if any of this has an easier solution or just sounds like fever dreams, please, let me know.
The text was updated successfully, but these errors were encountered: