Ticket #2376 (new enhancement)
Allow filtering of widgets available by page type
| Reported by: | nicolaas | Assigned to: | sminnee |
|---|---|---|---|
| Type: | enhancement | Priority: | minor |
| Milestone: | 2.2.3 | Component: | Sapphire Framework |
| Version: | 2.2.2-rc2 | Severity: | medium effort / impact |
| Keywords: | widgets | Cc: | |
| Due date: | Harvest Task: | (Unknown) | |
| Invoice sent to client: | 0 | Hours: |
Description
Hi
Hi Silverstripers
Widgets are a fantastic idea, but in the documentation they are listed as if the widgets were part of the blog module perse. In the documentation, I have added a section "how to add widgets to other pages": http://doc.silverstripe.com/doku.php?id=widgets#adding_widgets_to_other_pages
What is the philosophy on widgets - should all loaded widgets be available to all pages - or should widgets only be available to blog holders or ....?
For me, I would like to see the following:
Class MyPage? extends Page {
static include_widgets = Array( "mywidget1", "mywidget2", } }
see: http://www.silverstripe.com/extending-hacking-silverstripe-forum/flat/53193 Cheers
Nicolaas
