- Issue created by @penyaskito
- 🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺
This emerged on a conversation with @yanniboi, so giving credit.
- Assigned to mjb3141
- 🇳🇴Norway hansfn
Yes, this is something I have used myself earlier by creating blocks displayed on the user profile page for specific roles.
Anyway, another way to achieve the same effect on a dashboard, but without a specific DashboardTextblock:
- Create a content type "Site announcement" or something
- Create a view listing the X latest announcements or just the currently published announcements
- Add that view to the dashboard
If there are very few announcements, I can see that a simple text block is better so I support adding this.
- 🇬🇧United Kingdom yanniboi UK
What @hansfn is saying is true, it is very simple to create a content type and a views block. However, I very frequently have clients that just want to insert a specific bit of helper text into a UI. Maybe its a clarification about what should and should not be done or its just a temporary holding message. If there are several columns and rows on a dashboard there might be several blocks with adhoc text to be added in different areas.
An additional (huge) benefit of having a specific block time with config fields means that the text can be exported to site config and deployed with the block instances which avoids having to have to add the copy as content on production after a new feature is deployed.
- Status changed to Needs review
about 1 year ago 2:08pm 18 October 2023 - 🇪🇸Spain plopesc Valladolid
Added a new patch including the block + some tests to ensure that it can be added to dashboards through the UI.
This block could be a good first step to make other tests related to block config in other issues.
- Status changed to RTBC
about 1 year ago 11:32am 19 October 2023 - 🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺
I've tested this and worked as expected.
- 🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺
+++ b/config/schema/dashboard.schema.yml @@ -20,3 +20,18 @@ dashboard.dashboard.*: + label: Example
oopsie
Otherwise looks great.
- 🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺
Feedback is valuable, saving credit.
- 🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺
Comitted to 1.0.x, thanks everyone!
- Status changed to Fixed
about 1 year ago 11:48am 20 October 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
11 months ago 11:36am 10 January 2024