hi!
I have two question about widget:
1. I need to use two widget area (two widget tab in my admin cms). Is possible to do this operations? I found this link http://open.silverstripe.org/ticket/2131 in a post. I must copy in my Silverstripe code this correct file? I try but don't work..in my Page.php i write:
public static $has_one = array(
'Widget1'=>'WidgetArea',
'Widget2'=>'WidgetArea');
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Widgets", new WidgetAreaEditor("Widget1"));
$fields->addFieldToTab("Root.Content.Widgets2", new WidgetAreaEditor("Widget2"));
return $fields;
}
2. Is possible choose what type of widget I can use in the first area and what in the second area? For example: I want widget A, B, C in area A and widget D,F in area B. My idea was to create two main folder in root (Widget_A and Widget_B) and insert here the widget that i download from site.
thanks!!