Sam Minnee
878b348a0f
Merge branch 'master' into new-orm
...
Conflicts:
docs/en/reference/built-in-page-controls.md
model/SQLQuery.php
2011-05-26 17:08:10 +12:00
Ingo Schommer
3588cefa30
MINOR DateField documentation
2011-05-25 21:24:33 +12:00
Will Rossiter
771e93ef18
BUGFIX: return null data from checkbox field if not set. Fixes issue with validation using str_len() to determine valid field. FIXES: http://open.silverstripe.org/ticket/6231 . Thanks natmchugh
2011-05-23 20:36:20 +12:00
Ingo Schommer
d157e6ec35
MINOR Removing 'text' CSS class from CheckboxField_Disabled to avoid different styling from standard checkbox ( fixes #6636 , thanks theAlien)
2011-05-20 08:08:27 +12:00
Ingo Schommer
fbe4b3fbc9
BUGFIX Form::validate clears whole session incl. 'message' key, instead of overwriting specific keys ( fixes #6607 , thanks netnoise)
2011-05-17 20:51:38 +12:00
ajshort
1f6f7f0862
API CHANGE: Deprecated CompositeField->FieldSet() in favour of CompositeField->FieldList().
...
MINOR: Replaced usage of FieldSet with FieldList.
MINOR: Renamed FieldSetTest to FieldListTest.
2011-05-11 17:51:54 +10:00
Ingo Schommer
7a70b29b9d
ENHANCEMENT Support for record/selection-specific metadata in TreeDropdownField (e.g. useful for limiting available page type option based on a parent node selection)
2011-05-08 23:36:13 +12:00
ajshort
def001566c
API CHANGE: Renamed FieldSet to FieldList.
...
API CHANGE: Renamed HiddenFieldSet to HiddenFieldList.
2011-05-06 08:51:02 +10:00
ajshort
f0676c7d56
API CHANGE: Updated FieldSet to use ArrayList rather then DataObjectSet.
...
MINOR: Updated FieldSetTest since position information is no longer available on iterated objects.
2011-05-06 08:30:54 +10:00
ajshort
16a016b9dc
API CHANGE: Deprecated FormField->Name() in favour of FormField->getName().
2011-05-06 00:48:45 +10:00
ajshort
3f132a105b
API CHANGE: Replaced DataObjectSet instances with ArrayList.
2011-05-05 20:40:24 +10:00
ajshort
bdfff5bee3
MINOR: Updated TableField to use ArrayList rather than DataObjectSet when using a DataList.
2011-05-04 11:40:00 +10:00
ajshort
14c57ae082
MINOR: Updated TableListField to accept any list type, not just a DataObjectSet.
2011-05-03 12:22:18 +10:00
ajshort
04e5dae22e
MINOR: Updated places that expect a DataObjectSet to accept an SS_List instance.
2011-05-02 17:14:05 +10:00
Sam Minnée
15b4c1e281
Merge pull request #26 from ajshort/1ac23f8f676cb986dac679fbf43e4a7b61d0be68.
...
Remove Unused/Deprecated Classes
2011-05-01 17:18:32 -07:00
ajshort
81c0caaddb
API CHANGE: Renamed DataList::filter() and DataQuery::filter() to ::where().
2011-05-01 15:26:30 +12:00
ajshort
fc8d442505
MINOR: Removed useless setPageLimits call from ComplexTableField::Items().
2011-05-01 15:26:29 +12:00
Sam Minnee
4a061fd071
ENHANCEMENT: Refactored MemberTableList field to make better use of DataList and ManyManyList. Refactored ComplexTableField and TableListField to, stripping out as much model logic as possible.
2011-05-01 15:26:28 +12:00
Sam Minnee
319d2f4952
ENHANCEMENT: Refactored TableListField and subclasses to rely on the DataList to handle data manipulatation.
...
API CHANGE: A DataList can be passed as the 2nd argument to the constructor; this is the recommended approach for editing non-relations.
API CHANGE: You can't set a custom query; only a custom DataList.
API CHANGE: You can't have one of these fields editing data that doesn't correspond to a DataList - there must be some kind of DataObject behind it.
API CHANGE: If the field's name corresponds to a relation on the object being edited, then the relation is used as the data set - all the source* parameters are ignored.
API CHANGE: relationAutoSetting only works if your form has had the corresponding data object loaded with $form->loadDataFrom().
API CHANGE: relationAutoSetting can't be turned off; attach a non-relation DataList instead.
2011-05-01 15:25:45 +12:00
Sam Minnee
de1494e3a8
ENHANCEMENT: Implemented DataList as the successor of DataObjectSet. DataList doesn't execute the query until it's actually needed, allowing for a more flexible ORM.
...
API CHANGE: augmentSQL is now passed a DataQuery object from which query parameters can be extracted.
API CHANGE: DataObjectDecorators that manipulate the query can now define augmentDataQueryCreation().
API CHANGE: The container class argument for DataObject::get() is deprecated.
API CHANGE: DataObject::buildSQL() and DataObject::extendedSQL() are deprecated; just use DataObject::get() now.
API CHANGE: DataObject::instance_get() and DataObject::instance_get_one() are deprecated, and can no longer be overloaded.
API CHANGE: DataObject::buildDataObjectSet() is deprecated.
API CHANGE: Cant't call manual manipulation methods on DataList such as insertFirst()
2011-05-01 15:25:45 +12:00
Sam Minnee
2b991629b8
API CHANGE: In FieldSet::removeByName(), only match on field Title() if field Name() isn't set.
2011-05-01 15:25:14 +12:00
Ingo Schommer
79e0634537
Merge branch 'cms-ui-preparation'
2011-04-28 22:48:02 +12:00
ajshort
1ac23f8f67
API CHANGE: Removed deprecated AutocompleteTextField form field.
2011-04-26 11:01:38 +10:00
ajshort
a95e6ebae8
API CHANGE: Removed long deprecated TreeSelectorField form field.
2011-04-26 11:01:38 +10:00
Will Rossiter
14c60c5d9a
Landing pull request 17. Fixes Call to a member function setValue() on a non-object in ConfirmedPasswordField Fixes #????.
2011-04-25 22:44:54 +12:00
Ingo Schommer
43491c2641
MINOR Reducing number of asset downloads by combining files in LeftAndMain->init() and including full jquery.ui.css instead of multiple @import statements
2011-04-25 21:36:51 +12:00
Ingo Schommer
98f56069a9
MINOR Removed scriptaculous dependency from TableField and TableListField, added jQuery dependency
2011-04-24 11:46:53 +12:00
Ingo Schommer
ce05ce78e5
BUGFIX Allow alternative (array-based) templates in Form->forTemplate()
2011-04-24 11:46:50 +12:00
Ingo Schommer
03547fb205
ENHANCEMENT Added FormField->setTemplate() and getTemplate(), using it in TabSet and other already template-driven FormField subclasses
2011-04-24 11:46:50 +12:00
Ingo Schommer
583f669c68
API CHANGE Adjusting to split of SiteTree->getCMSFields() into getSettingsFields(), and new tab paths ("Root.Content" instead of "Root.Content.Main")
2011-04-24 11:46:49 +12:00
Ingo Schommer
ff29f3e4e8
ENHANCEMENT Changed HtmlEditorField link/image/flash forms to use model jQuery.dialog instead of side panel - less side effects when switching focus between editor and side panels, and fits better in new design drafts
2011-04-24 11:46:43 +12:00
Jean-Fabien
26813b9221
BUGFIX Reloads the item in a complex table field popup when clicking on its name after having saved it, rather than a blank popup fixes #6549
2011-04-06 08:43:52 +12:00
Julian Seidenberg
dec5c0ae60
API CHANGE: TextareaField doesn't have hidden value on read-only transformation. Added hidden fields in a way that doesn't break unit tests too severely ( fixes #5056 , thanks jshipman)
2011-03-30 18:16:17 +13:00
Ingo Schommer
eda75a2aa9
MINOR Fixed documentation for DatetimeField
2011-03-30 08:39:35 +13:00
Ingo Schommer
b1f27b40ce
MINOR Updated image references in sapphire/ folder to local files, rather than requiring cms/ folder (copied a bunch of images files over for this)
2011-03-29 21:34:26 +13:00
Ingo Schommer
0d39a888a1
MINOR Removed references to ContentController from documentatin
2011-03-29 18:20:14 +13:00
Ingo Schommer
d37faf6647
MINOR Declaring additional dependencies in ComplexTableField
2011-03-29 18:08:33 +13:00
Ingo Schommer
a1fb071b2b
MINOR Moved LeftAndMain, SecurityAdmin, ModelAdmin and related functionality from 'cms' module to sapphire/admin
2011-03-29 18:07:59 +13:00
Ingo Schommer
67cc18f5bf
MINOR Optional dependency on ThumbnailStripField in HtmlEditorField, preparing the split of this field into a "basic" and "cms" version
2011-03-29 18:07:58 +13:00
Ingo Schommer
41e51abd9a
MINOR Made HtmlEditorField dependency to SiteTree optional (to be moved into separate aspect, or down to DBField/model layer)
2011-03-29 18:07:58 +13:00
Ingo Schommer
d61444e976
API CHANGE Moved Translatable class into new 'translatable' module
2011-03-29 18:07:56 +13:00
ajshort
825242eba1
MINOR: Removed unused method ComplexTableField::PopupClasses().
2011-03-24 20:14:41 +11:00
Ingo Schommer
0b40bda1cc
MINOR Changed TreeDropdownField markup from <div href="..."> to <div data-url-tree="..."> in order to support other URLs (e.g. reordering) - important for the main CMS tree
2011-03-22 18:15:03 +13:00
Ingo Schommer
f06480da55
ENHANCEMENT Making TreeDropdownField and TreeMultiSelectField serverside markup more unobtrusive, adding DOM elements required by javascript through TreeDropdownField.js
2011-03-22 18:05:22 +13:00
Ingo Schommer
4b9ab5c8aa
FEATURE Switched TreeDropdownField to use jquery.jstree instead of custom tree.js library. Rewrote TreeDropdownField.js from behaviour.js to jquery.entwine.js
2011-03-22 18:05:18 +13:00
Ingo Schommer
e78b700f7c
BUGFIX Switching all ajax implementations to consistently use jQuery.ajax instead of Prototype's Ajax.Request() (AjaxUniqueTextField, InlineFormAction, TableField, TableListField, TreeSelectorField)
2011-03-22 17:59:36 +13:00
Sean Harvey
ebe94ae601
MINOR Removed $allowedExtensions property from SimpleImageField which is deprecated
2011-03-17 13:30:33 +13:00
Sean Harvey
e0e1f81186
API CHANGE Removed deprecated RestrictedTextField, UniqueTextField and UniqueRestrictedTextField
2011-03-17 12:34:22 +13:00
Sean Harvey
53f43f5176
API CHANGE Removed deprecated $allowHTML parameter from HeaderField constructor. Use allowHTML() method instead
2011-03-17 12:13:27 +13:00
Sean Harvey
180185db43
API CHANGE Removed $className and $allowHTML from DatalessField constructor to support LabelField changes
2011-03-17 12:07:56 +13:00