The widget system is great, but I still think there a few (simple) things that could make it even more awesome:
Allow users to override the template
Doing this would allow to use the same widget definition in various places possible having completely different looks
Caching
Some widgets might benefit from caching, so if the base class would already offer caching functionality this would be a plus
Permissions/Usergroup Selection
Sometimes it is desirable to show certain widgets to certain users/uergroups only.
For example their could be a "Unread Posts in Staff Forum" widget,.
As it is right now the widget would (uselessly) query the data for every visitor and end up with "You have no unread posts." for everyone (except staff).
Allow users to override the template
Doing this would allow to use the same widget definition in various places possible having completely different looks
Caching
Some widgets might benefit from caching, so if the base class would already offer caching functionality this would be a plus
Permissions/Usergroup Selection
Sometimes it is desirable to show certain widgets to certain users/uergroups only.
For example their could be a "Unread Posts in Staff Forum" widget,.
As it is right now the widget would (uselessly) query the data for every visitor and end up with "You have no unread posts." for everyone (except staff).
Upvote
8