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
Ingo Schommer
79e0634537
Merge branch 'cms-ui-preparation'
2011-04-28 22:48:02 +12:00
Ingo Schommer
0fd6924fe1
FEATURE Preview changes of page edits in CMS on website (through <iframe> sidebar)
2011-04-28 22:36:28 +12:00
Ingo Schommer
afa05f93dd
MINOR Background color fallbacks for IE (no gradient support)
2011-04-27 19:37:46 +12:00
ajshort
3a1c2df4e7
API CHANGE: Renamed DataObjectDecorator to DataExtension.
...
API CHANGE: Renamed LeftAndMainDecorator to LeftAndMainExtension.
MINOR: Replaced all references to decorators with extension.
2011-04-26 11:01:38 +10: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
d916140686
ENHANCEMENT Added incompatibility notice for Internet Explorer 6 in LeftAndMain.js
2011-04-24 12:31:19 +12:00
Ingo Schommer
663c49ccdd
MINOR Added temporary 'preview' header
2011-04-24 11:46:56 +12:00
Ingo Schommer
2291d64c2c
MINOR Disabled "welcome" message in LeftAndMain->RootForm()
2011-04-24 11:46:56 +12:00
Ingo Schommer
5bd35f7016
MINOR Moved LeftAndMain_EditForm.ss to templates/Includes/ in order to keep same template specificity as overloaded templates
2011-04-24 11:46:56 +12:00
Ingo Schommer
035b68fc32
MINOR Misc style improvements around batch actions and content tools display
2011-04-24 11:46:56 +12:00
Ingo Schommer
2c6e0c277b
MINOR Adapted CMS batch actions form to work outside of tabset context
2011-04-24 11:46:55 +12:00
Ingo Schommer
b08fc52da4
MINOR Wrapping cms-content-header <div> in order to provide overflows without line breaks
2011-04-24 11:46:55 +12:00
Ingo Schommer
f0f7f8aa75
MINOR Removed unnecessary 'actionsparams' class from LeftAndMain forms
2011-04-24 11:46:55 +12:00
Ingo Schommer
be68450ce1
MINOR Allowing NULL returns from getRecord() in LeftAndMain->getSiteTreeFor()
2011-04-24 11:46:54 +12:00
Ingo Schommer
51c02289da
MINOR Moved edit-form specific jstree logic to LeftAndMain.EditForm.js
2011-04-24 11:46:54 +12:00
Ingo Schommer
ecddf5b945
API CHANGE ModelAdmin->ResultsForm() no longer returns a TabSet (was just a layout crutch to support correct sizing)
2011-04-24 11:46:54 +12:00
Ingo Schommer
1a9441ffc8
MINOR Removed jquery.fitheighttoparent from LeftAndMain->init(), handled by layout manager now
2011-04-24 11:46:53 +12:00
Ingo Schommer
895b98116d
MINOR Using jQuery ajax methods in AssetTableField and MemberTableField (instead of the prototype library functions which are not fully compatible with jQuery.ondemand at the moment). Fixed TableListField.js errors.
2011-04-24 11:46:53 +12:00
Ingo Schommer
0271652aa3
ENHANCEMENT Added default 'delete' action in LeftAndMain->getEditForm() if no other actions are set ('save' action was already present)
2011-04-24 11:46:53 +12:00
Ingo Schommer
3c544340ee
MINOR Making canEdit() method optional on objects handled by LeftAndMain subclasses
2011-04-24 11:46:53 +12:00
Ingo Schommer
403d05726d
ENHANCEMENT Using new *_Content templates for ModelAdmin and SecurityAdmin
2011-04-24 11:46:52 +12:00
Ingo Schommer
38bc2a9d73
MINOR Removed unused SecurityAdmin.Tree.js
2011-04-24 11:46:51 +12:00
Ingo Schommer
4ddd69f85f
ENHANCEMENT Using SCSS variables for colour definitions in CMS, setting to greyscale theme for now in order to communicate the early status of the UI work
2011-04-24 11:46:51 +12:00
Ingo Schommer
a2b39e55c1
MINOR Removed unnecessary "type" field from LeftAndMain->AddForm(), added generic styles for buttons
2011-04-24 11:46:51 +12:00
Ingo Schommer
f4cb6ae40f
MINOR Renamed #sitetree_ul to .cms-tree in templates, removed #sitetree from contained <ul> (unnecessary duplication)
2011-04-24 11:46:51 +12:00
Ingo Schommer
87bdb0d3d1
MINOR Removed unused LeftAndMain_rightbottom.ss
2011-04-24 11:46:50 +12:00
Ingo Schommer
ba4d7099bb
ENHANCEMENT Using custom CMSEditForm to render LeftAndMain->EditForm(), in order to place (fake) tab navigation alongside the layout manager areas (outside of actual edit form)
2011-04-24 11:46:49 +12:00
Ingo Schommer
9da43d139a
API CHANGE Removed support for CMSTopMenu_alternative template, use CMSMenu.ss in themes or project template folders instead
...
API CHANGE Renamed LeftAndMain->CMSTopMenu() to CMSMenu()
API CHANGE Renamed LeftAndMain->Left() to Menu(), used through LeftAndMain_Menu.ss templates (instead of LeftAndMain_left.ss) - in order to avoid presentational naming
API CHANGE Renamed LeftAndMain->Right() to Content(), used through LeftAndMain_Content.ss templates (instead of LeftAndMain_right.ss) - in order to avoid presentational naming
2011-04-24 11:46:48 +12:00
Ingo Schommer
99a68dde75
ENHANCEMENT Started styles for new CMS
2011-04-24 11:46:48 +12:00
Ingo Schommer
6dbfd5fdde
MINOR Renaming <div id="contentPanel"> to "cms-editor-dialogs"
2011-04-24 11:46:48 +12:00
Ingo Schommer
0f7175f1f7
BUGFIX Disabling add_sheet() on jstree, as its horribly slow
2011-04-24 11:46:48 +12:00
Ingo Schommer
dafb93fd77
MINOR Moved loading screen above layout initialization to avoid FOUC in LeftAndMain.js
2011-04-24 11:46:47 +12:00
Ingo Schommer
f2f6ecc880
MINOR Hardcoding jstree CSS url to avoid loading non-existant CSS files via ajax (through jstree library)
2011-04-24 11:46:47 +12:00
Ingo Schommer
8183cc7117
BUGFIX Checking file existence in LeftAndMain->init() for TinyMCE's content_css settings to avoid unnecessary clientside loading of files
2011-04-24 11:46:46 +12:00
Ingo Schommer
b273861591
ENHANCEMENT Implemented new jLayout layout manager, more expressive class names in LeftAndMain.ss
2011-04-24 11:46:46 +12:00
Ingo Schommer
85386b4b9c
MINOR Changed logo wording
2011-04-24 11:46:46 +12:00
Ingo Schommer
cdb263e6d1
MINOR Added jquery.sizes library
2011-04-24 11:46:46 +12:00
Ingo Schommer
578f0ee30b
MINOR Removed unnecessary jlayout examples
2011-04-24 11:46:46 +12:00
Ingo Schommer
253f90f018
MINOR Added jlayout dependency
2011-04-24 11:46:45 +12:00
Ingo Schommer
ddb9478170
MINOR Misc CSS class changes in LeftAndMain
2011-04-24 11:46:45 +12:00
Ingo Schommer
bdd831f68f
MINOR Changed <body class="stillLoading"> to loading
2011-04-24 11:46:45 +12:00
Ingo Schommer
35bd9f2537
MINOR Changed #sitetree_ul to #sitetree in templates and javascript
2011-04-24 11:46:45 +12:00
Ingo Schommer
f6edcd1170
MINOR Setting base font size for CMS
2011-04-24 11:44:19 +12:00
Ingo Schommer
0c81515066
MINOR Mocking sub-entries in CMSTopMenu
2011-04-24 11:44:19 +12:00
Ingo Schommer
f6f658f803
MINOR Moved profile and welcome message to CMSTopMenu instead of bottom bar
2011-04-24 11:44:19 +12:00
Ingo Schommer
982b9bda99
API CHANGE Switching doctype to HTML5 in CMS templates
2011-04-24 11:44:17 +12:00
Ingo Schommer
bdd81e5d00
MINOR Renaming CMSMenu entries
2011-04-24 11:44:17 +12:00
Ingo Schommer
dad6169f73
MINOR Using '.cms-edit-form' instead of '#Form_EditForm' selector
2011-04-24 11:44:17 +12:00
Ingo Schommer
fd0c38c175
MINOR Added sapphire/admin/scss folder and started SCSS file architecture
2011-04-24 11:44:16 +12:00
Ingo Schommer
c44deb03ab
MINOR Moved existing CSS files from sapphire/admin/css to sapphire/admin/css/_old folder, for later reference. Blocking them from controller inclusion to prepare CMS UI redesign
2011-04-24 11:44:16 +12:00
Ingo Schommer
a423bd4e04
API CHANGE Removed LeftAndMain->setLogo(), use CSS instead
2011-04-24 11:44:16 +12:00
Ingo Schommer
cfaec05141
API CHANGE Removed LeftAndMain->setApplicationName() $logoText parameter, and LeftAndMain->getApplicationLogoText(), overload templates instead
2011-04-24 11:44:16 +12:00
Ingo Schommer
05f0ce3a21
API CHANGE Removed LeftAndMain->setLogo() $logoStyle parameter and LeftAndMain->LogoStyle(), use CSS
2011-04-24 11:44:16 +12:00
Ingo Schommer
e3928a0517
API CHANGE Removed LeftAndMain::set_loading_image() and LoadingImage(), use CSS
2011-04-24 11:44:16 +12:00
Ingo Schommer
11a3b86fef
MINOR Removed jQuery.layout implementation
2011-04-24 11:44:16 +12:00
Ingo Schommer
601665519b
ENHANCEMENT Added 'nochildren' support to new jstree implementation
2011-04-07 22:03:57 +12:00
Frank Mullenger
bde2696ff5
BUGFIX Checks if movedNode is in allowedChildren of newParent node before moving in tree ( fixes #6578 )
2011-04-07 22:00:42 +12:00
phalkunz
83f6c82639
BUGFIX: Fixed tinymce cleanup
2011-04-05 11:54:01 +12: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
b4affff38d
MINOR Removed hard dependency on SiteConfig and VirtualPage in LeftAndMain
2011-03-29 18:20:14 +13:00
Ingo Schommer
a467eda0d2
MINOR Making managed class configurable in CMSBatchAction in order to remove hard dependency to cms module (still defaults to SiteTree)
2011-03-29 18:20:14 +13:00
Ingo Schommer
95dcc74c10
MINOR Removed reliance of sapphire/admin unit tests on SiteTree and CMSMain
2011-03-29 18:20:10 +13:00
Ingo Schommer
9d742f02f2
API CHANGE Removed ?debug_firebug GET parameter, and related firebug-lite inclusion in LeftAndMain
2011-03-29 18:08:33 +13:00
Ingo Schommer
519f06219f
MINOR Moved EditorToolbar from LeftAndMain to CMSMain
2011-03-29 18:08:33 +13:00
Ingo Schommer
500624fa5b
MINOR Removing unnecessary Requirements calls in SecurityAdmin (either already in place through LeftAndMain base class, or included by MemberTableField)
2011-03-29 18:08:33 +13:00
Ingo Schommer
358975ea0c
MINOR Conditional checks on SiteConfig existence in LeftAndMain->init()
2011-03-29 18:08:33 +13:00
Ingo Schommer
a73c9ccb3c
MINOR Moved CMSBatchAction class to sapphire module, but keeping SiteTree specific subclasses in cms
2011-03-29 18:08:33 +13:00
Ingo Schommer
c142442e83
MINOR Removed CMSMain routing
2011-03-29 18:08:33 +13:00
Ingo Schommer
5f59b3a3c9
MINOR Fixed paths due to file moving into sapphire/admin
2011-03-29 18:08:32 +13:00
Ingo Schommer
2c50ba62a2
MINOR Removed unnecessary TreeDropdownField customizations in Image_iframe.css
2011-03-29 18:07:59 +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