Commit Graph

553 Commits

Author SHA1 Message Date
Ingo Schommer
80d79e63b8 API CHANGE: Allowing ModelAdmin::$managed_models to contain additional options in their array values, e.g. a custom "title" (Improved #4036, see r76999)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@77096 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-18 21:13:28 +00:00
Sean Harvey
8625e3bce3 Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@77067 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-18 05:31:22 +00:00
Sean Harvey
f27122e102 Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@77033 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-18 00:23:52 +00:00
Sean Harvey
c69994f98f Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@77023 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-17 23:19:51 +00:00
Ingo Schommer
b62bb7ab77 MINOR Updated CMSMain to Translatable API changes
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@77007 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-17 05:36:51 +00:00
Sam Minnee
eb7d4f0118 MINOR: Fixed managed_models error message to reflect that it's public, not protected, now.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@77000 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-16 06:08:27 +00:00
Sam Minnee
7d00afce59 API CHANGE #4036 ajshort: Add the ability to set the keys of ModelAdmin::$managed_models to alternate titles for the tabs.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76999 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-16 06:03:22 +00:00
Sam Minnee
405392f7f7 API CHANGE #4036 ajshort: Add the ability to set the keys of ModelAdmin::$managed_models to alternate titles for the tabs.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76998 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-16 06:02:57 +00:00
Sam Minnee
4adb585e80 ENHANCEMENT ajshort: Add the ability to overload getModelForms() and add new custom model sidebars.
API CHANGE: Move the generation of the content for the create / search / import model sidebar from ModelAdmin into the collection controller.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76997 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-16 05:58:54 +00:00
Sean Harvey
b34dcd40b0 Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76918 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-15 00:13:11 +00:00
Ingo Schommer
491118381c MINOR Package documentation for CMSBatchAction* classes
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76878 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-14 21:56:35 +00:00
Sean Harvey
46bf3ce2d2 Added missing classes
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76876 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-14 21:51:54 +00:00
Ingo Schommer
8362026b12 BUGFIX Fixed CMSMain->LangSelector() default language selection
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76870 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-14 21:27:10 +00:00
Sean Harvey
b360ad9cd7 Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76857 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-14 06:11:18 +00:00
Ingo Schommer
7fc439dcd3 MINOR Adapted to API change in r76853 (Translatable::get_current_locale())
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76854 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-14 06:06:34 +00:00
Ingo Schommer
e99ef98e89 ENHANCEMENT Using standard LanguageDropdownField in CMSMain->LangSelector()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76840 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-14 05:18:37 +00:00
Ingo Schommer
9da24cdfb5 BUGFIX Removed obsolete CMSMain->EditingLang(), not used any longer (see #3997)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76731 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-13 06:02:31 +00:00
Sean Harvey
182d1061a9 Merged from 2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76270 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-06 06:37:45 +00:00
Sean Harvey
892849c0e1 BUGFIX Fixed saving of widgets correctly if ID is not numeric
MINOR Code formatting fixes



git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@76186 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-06 03:31:15 +00:00
Sean Harvey
a9ea6549c3 Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@75905 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-05-04 01:27:35 +00:00
Sean Harvey
4e4810bbb6 Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@75780 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-04-30 22:47:28 +00:00
Sean Harvey
504ba464f6 Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@75655 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-04-29 05:56:33 +00:00
Sean Harvey
42a6692d79 Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@75592 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-04-29 01:44:28 +00:00
Ingo Schommer
8d61656c2e MINOR Changed formatting and documentation for classname change detection in LeftAndMain->save(), slightly adapted to new DataObject->newClassInstance() method
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@75250 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-04-27 05:58:54 +00:00
Sean Harvey
2680489318 BUGFIX Fixed issues with StaticPublisher->onAfterWrite() - merged from r74092
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@74093 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-04-06 01:28:03 +00:00
Ingo Schommer
310b75fce6 MINOR Using Translatable::choose_site_locale() instead of choose_site_lang() in LeftAndMain->init()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@74072 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-04-03 21:26:51 +00:00
Normann Lou
f1d9428c58 Roll back chane commited in r73700
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@73706 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-26 20:48:25 +00:00
Normann Lou
dfff676f48 1. Add Data model for DrawDivisionPrize and Lot (LotNumberBased, LotTicketBase). 2.Add model admin for DrawCenter. 3. Disable create a game draw for draw center.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@73700 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-26 04:53:23 +00:00
Normann Lou
031b88d0f3 ENHANCEMENT: make the currentRecord of ModelAdmin_RecordControll accessible by adding ModelAdmin_RecordControll::geCurrentRecord(), this is to fix bugs for those ComplexTableField fields generated automatically by relations.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@73579 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-24 06:17:21 +00:00
Ingo Schommer
c66ebfaeb8 MINOR phpdoc documentation
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@73508 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-22 22:58:18 +00:00
Ingo Schommer
893df91e33 ENHANCEMENT Adjusted CMSMain and LeftAndMain to use locales instead of short lang codes when reading and writing translations. See r73468 for details on the underlying Translatable datamodel change
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@73469 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-20 08:49:27 +00:00
Ingo Schommer
15454352bb ENHANCEMENT Showing all available languages in language selector above sitetree in CMS - you can now create new pages in completely new languages without any relation to an "original"
ENHANCEMENT Added CMSMain->IsTranslatableEnabled
API CHANGE Removed CMSMain->switchlanguage() - createTranslation() is sufficient for new, ajax refreshing of CMS state got way too complicated for switching languages, we now just reload the entire CMS with a different ?lang GET parameter

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@73345 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-18 17:18:52 +00:00
Ingo Schommer
a9053b4b67 BUGFIX Checking for existence of original before trying to get translation in LeftAndMain->currentPage()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@73344 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-18 17:14:59 +00:00
Ingo Schommer
caa961e4fb MINOR ModelAdmin documentation
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@73337 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-18 14:13:03 +00:00
Ingo Schommer
be985afd24 API CHANGE Using RequiredFields or DataObject->getCMSValidator() in CMSMain->getEditForm(), which means all pages in the CMS will have validation enabled, e.g. for date fields. This is necessary to avoid a global disabling of javascript validation through Validator::set_javascript_validation_handler('none') breaking the CMS, which relies on javascript responses through Form->validate() and the FormResponse class (without specifically requesting them through HTTP Accept headers). See #3386 and #2915
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@73336 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-18 13:03:52 +00:00
Ingo Schommer
590b2a2b9a BUGFIX Using $allowed_actions in ImageEditor
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@73248 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-17 22:20:28 +00:00
Ingo Schommer
e73b66036a BUGFIX Using auto-escaped get_by_id() in CommentAdmin and SecurityAdmin
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@73247 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-17 22:20:03 +00:00
Geoff Munn
2961a00b46 BUG FIX: SQL queries fixed for MSSQL
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@72983 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-12 21:48:58 +00:00
Ingo Schommer
71c64c1968 ENHANCEMENT Using ajax for the add/create action in ModelAdmin
ENHANCEMENT Adding global ajax error handlers for ModelAdmin save/delete requests
MINOR Added $recordID parameter to ModelAdmin_RecordController so it can be instanciated manually (necessary for post-create actions in ModelAdmin)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@72978 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-12 16:42:31 +00:00
Geoff Munn
d0ec64ee0e API CHANGE: NOW() replaced with DB-specific version
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@72917 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-11 21:45:58 +00:00
Sam Minnee
61d312643e Merged from branches/2.2
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@72813 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-10 22:26:22 +00:00
Sam Minnee
550931c02a Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@72801 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-10 21:59:19 +00:00
Andrew O'Neil
fa76e64d48 Merged from trunk
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@72452 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-04 03:35:29 +00:00
Geoff Munn
75b1484fca API CHANGE: column names escaped
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@72425 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-03 21:43:47 +00:00
Sean Harvey
5141700f41 MINOR Re-added deprecated variable on MemberTableField
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71594 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-10 03:27:12 +00:00
Sean Harvey
aa69629a3c MINOR Added translatable error message for MemberTableField
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71389 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-04 21:13:04 +00:00
Sean Harvey
c4d3abcc29 ENHANCEMENT Show at most, 100 members in a group before paging required instead of 10
MINOR Removed setting of permissions since this never worked - use MemberTableField->setPermissions() instead
MINOR Deprecated the use of addMembershipFields() - use updateSummaryFields() on your Member decorator instead
MINOR Removed redundant code that wasn't being used

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71388 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-04 20:36:23 +00:00
Ingo Schommer
bcbdfe2a13 MINOR Documentation
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71387 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-04 20:18:12 +00:00
Ingo Schommer
173c495afe ENHANCEMENT Enforcing Member->can*() and Group->can*() permissions in SecurityAdmin
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71330 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-03 23:34:14 +00:00
Sean Harvey
06a007f394 MINOR Code formatting tidy up in ModelAdmin
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71302 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-03 20:34:13 +00:00