Title / Description
Code static $has_one = array( "Sidebar" => "WidgetArea", ); function getCMSFields() { $fields = parent::getCMSFields(); $fields->addFieldToTab("Root.Content.Widgets", new WidgetAreaEditor("Sidebar")); return $fields; }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code