Timeline for How to find if there is a draft for a particular entry in control panel plugin
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 6, 2022 at 9:48 | comment | added | Parthiban | Thanks for the details @moritzlost | |
Sep 6, 2022 at 7:29 | comment | added | MoritzLost |
@Parthiban In Craft 4 there's a new setting for the default duration that flash messages are visible for, you can set the notificationDuration as part of the accessibilityDefaults . You can set that to 0 to show the messages indefinitely, though users can still change that in their account. That setting is only available in the latest Craft 4 version, though. I don't think there's another convenient method for this, so appending messages in JS sounds reasonable.
|
|
Sep 5, 2022 at 14:28 | comment | added | Parthiban | Thanks, @moritzlost But the above solutions won't display permanently(after certain seconds it will auto-hide). I was looking to show a notification permanently. Currently, I append HTML elements with JS. Let me know if there are any specific notification methods we can use. | |
Sep 5, 2022 at 7:43 | comment | added | MoritzLost | @Parthiban Craft refers to those notifications as flash messages, you can set them through the session component. See here and here for details. | |
Sep 5, 2022 at 3:13 | comment | added | Parthiban | Thanks for the details in addition to the above, could you point me to how to display an html notification on the control panel? | |
Sep 2, 2022 at 11:37 | vote | accept | Parthiban | ||
Sep 2, 2022 at 11:19 | history | answered | MoritzLost | CC BY-SA 4.0 |