Commit Graph

1147 Commits

Author SHA1 Message Date
Sam Minnee
3546ec275b BUGFIX: Fixed bug with // placement in CMSMenu Director rule generation
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65502 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-10 01:01:09 +00:00
Saophalkun Ponlu
6f33a5fcf6 Cleaned up the commented-code
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65465 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-09 20:52:38 +00:00
Ingo Schommer
231e3f0003 ENHANCEMENT Allowing strings instead of arrays in ModelAdmin::$managed_models to make it less error-prone for beginners
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65463 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-09 14:34:05 +00:00
Ingo Schommer
6db9650b32 ENHANCEMENT Adjusted AssetAdmin to Folder->can*() changes
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65455 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-07 12:21:41 +00:00
Ingo Schommer
62a36c6828 ENHANCEMENT Added LeftAndMainDecorator
API CHANGE Deprecated DataObjectDecorator->augmentInit(), use LeftAndMainDecorator->init()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65454 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-07 12:21:10 +00:00
Sean Harvey
0e727e458d MINOR Tidied up ThumbnailStripField->getimages() formatting
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65446 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-07 03:05:43 +00:00
Sean Harvey
22a4079277 MINOR Tidied up ThumbnailStripField->getflash() formatting
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65445 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-07 03:04:28 +00:00
Sean Harvey
58c1695c39 MINOR Tidied up ThumbnailStripField->getimages() formatting
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65444 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-07 02:57:48 +00:00
Sam Minnee
54ac444b2c BUGFIX #2987 - IE8 support via IE7 compatability mode
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65424 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-07 00:41:11 +00:00
Sean Harvey
a0c87179e5 MINOR Tidied up messy code formatting
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65418 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-06 23:47:28 +00:00
Sean Harvey
e052d533f9 MINOR Tidied up AssetAdmin->SiteTreeAsUL()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65409 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-06 22:56:24 +00:00
Sean Harvey
97c2f470e0 Removed redundant code
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65407 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-06 22:51:30 +00:00
Will Rossiter
235903a37c MINOR: images for the new imageeditor which didnt get included in the patch
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65398 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-06 22:06:36 +00:00
Will Rossiter
0ef452c524 FEATURE: merged back patch for image editor. Currently completely broken on trunk this patch does nothing to fix it sadly. I think its a prototype thing
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65351 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-06 02:04:03 +00:00
Ingo Schommer
85daead336 BUGFIX Making ModelAdmin labels in left panel translatable again (regression from moving them into one common panel)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65336 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-05 23:23:23 +00:00
Saophalkun Ponlu
f72f2b4dd0 IMPROVEMENT Fix tab display and button position when adding a record (ticket #3029)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65332 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-05 23:14:00 +00:00
Ingo Schommer
d8acf97911 MINOR JS translations in LeftAndMain
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65292 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-05 14:38:59 +00:00
Saophalkun Ponlu
86017a5ae9 IMPROVEMENT moved managed models' forms to one panel (ticket #2898)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65289 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-05 08:55:07 +00:00
Sam Minnee
6779388b9e BUGFIX: Fixed page comment javascript to suit new Form name
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65282 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-05 04:54:21 +00:00
Sam Minnee
750353dcd6 BUGFIX #2630 - Removed notice-level error
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65271 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-05 04:20:35 +00:00
Sam Minnee
c98c6c387e Added deprecation method for LeftAndMain::add_menu_item()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65252 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-05 02:28:11 +00:00
Sam Minnee
cac5594e35 MINOR: Removed redundant code
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65233 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-04 23:31:42 +00:00
Ingo Schommer
59d9f2b3d8 BUGFIX Remove LeftAndMain entry from CMSMenu (#3014). Thanks to hamish for the patch!
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65214 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-04 13:56:40 +00:00
Ingo Schommer
bcfa95887f BUGFIX Only enforcing record-level permissions in LeftAndMain if passed ID is numeric to avoid breaking AssetAdmin with string-based IDs (regression from r65152). See #3017
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65213 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-04 13:53:11 +00:00
Sam Minnee
b6ae79afce Added spellchecker to CMS
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65189 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-04 02:13:58 +00:00
Ingo Schommer
6eadbbff7f ENHANCEMENT Updated LeftAndMain->getMenuTitle() to use classname as fallback if $menu_title is not defined - one less thing to specify in a minimalist ModelAdmin subclass
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65181 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-04 01:46:58 +00:00
Ingo Schommer
f2bf599795 BUGFIX Calling parent constructor on ModelAdmin classes so $this->class gets set properly and doesn't confuse the RequestHandler
BUGFIX Add magic methods on ModelAdmin to $allowed_actions (regression from r64988)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65180 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-04 01:32:45 +00:00
Sean Harvey
6afd96eba4 Reverted previous change, as MemberTableField has it's own use of sourceFilter - not the most documentation situation however.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65175 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-03 23:30:16 +00:00
Sean Harvey
0c650b20fb BUGFIX MemberTableField use of sourceFilter should be treated as a string, not an array as per the API of TableListField
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65174 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-03 23:23:20 +00:00
Sean Harvey
bd10591e7c ENHANCEMENT Added filter/search capability to AssetTableField, this is similar to MemberTableField, except you search by file name.
ENHANCEMENT Refactored CSS applied to filter boxes by using common selector

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65173 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-03 23:09:49 +00:00
Ingo Schommer
9bf3245939 BUGFIX Enforce permission checks in LeftAndMain and CMSMain through SiteTree->canView()/canEdit()/canAddChildren()/canPublish()/canDelete() (see #2701)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65152 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-03 14:56:36 +00:00
Ingo Schommer
54d8e3ff6f BUGFIX Fixed SiteTreeAccess.js DOM IDs to field changes made in r65150
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65151 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-03 14:54:57 +00:00
Ingo Schommer
415390373e BUGFIX Fixed js error in LeftAndMain_right.js when displaying readonly pages
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65148 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-03 13:53:23 +00:00
Sean Harvey
8d6d5c2501 MINOR Code formatting in CMSMenuItem
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65126 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-03 02:07:03 +00:00
Ingo Schommer
386c586b38 BUGFIX Setting menu titles for CMSMenu items in LeftAndMain::init() to get translated values for the current user locale (see #2873)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65106 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-02 22:45:49 +00:00
Ingo Schommer
e1d5fc9db6 BUGFIX Fixed menu titles entity references in CMSMain and AssetAdmin
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65104 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-02 22:45:05 +00:00
Ingo Schommer
2cdf57053f FEATURE Added CMSMenu and CMSMenuItem and adjusted existing LeftAndMain subclasses to use new notation.See #2872 (thanks to hamish for the patch!)
API CHANGE Removed LeftAndMain::add_menu_item(), LeftAndMain::remove_menu_item(), LeftAndMain::replace_menu_item(), LeftAndMain::clear_menu()
MINOR Disabled LeftAndMainTest, now covered by CMSMenuTest

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65095 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-02 21:27:55 +00:00
Ingo Schommer
1cb3bbd8b2 MINOR Updated master language tables
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65075 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-02 20:05:35 +00:00
Ingo Schommer
18912d2cb7 ENHANCEMENT Added fieldLabels() overloading to various DataObject subclasses. Use this method instead of directly calling _t() in getCMSFields(), and use fieldLabel('MyField') to get the label for a specific FormField. This way, we can transparently support formfield scaffolding and re-use the labels for search fields automatically.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65073 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-02 20:04:26 +00:00
Ingo Schommer
e2ca30f78a BUGFIX Using SiteTree::get_by_url() (see r65060)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65061 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-02 00:24:46 +00:00
Ingo Schommer
45c433b8f1 MINOR Collecting entities for language master table with new i18nTextCollector functionality. The table is now sorted alphabetically by namespace and entity. Entities now include more translatable statics from DataObject subclasses like $db, $has_one etc.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65035 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-01 15:26:13 +00:00
Ingo Schommer
c6a8ad67fa BUGFIX Fixed SecurityAdminTest to work with i18n enabled
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65028 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-01 13:55:47 +00:00
Ingo Schommer
dbcd2f6c2b ENHANCEMENT Using safer get_by_id() call in SecurityAdmin->getMemberForm()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65027 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-01 13:55:23 +00:00
Ingo Schommer
fa2a2df551 BUGFIX Fixed CMSMainTest to check for translated entities to avoid failing tests with i18n enabled
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65024 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-11-01 13:42:19 +00:00
Sean Harvey
aa3437c4d4 MINOR Renamed variable to avoid confusion in SecurityAdmin->SiteTreeAsUL()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@64986 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-31 02:45:19 +00:00
Sam Minnee
dd8b5bafa4 API CHANGE #2857 - Renamed RequestHandlingData to RequestHandler
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@64954 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-30 22:03:32 +00:00
Sam Minnee
e32d366975 Fixed TinyMCE stylihg
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@64862 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-29 02:36:54 +00:00
Sam Minnee
4d5092a47d Fixed CMS uploading
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@64839 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-28 22:13:40 +00:00
Sam Minnee
884795b6e8 BUGFIX: Content wasn't saving on subsequent page loads, after TinyMCE3 upgrade
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@64812 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-28 04:32:30 +00:00
Saophalkun Ponlu
2dda8bb253 BUGFIX: in IE, overflow left pane is hidden and cannot enable scrollbar
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@64788 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-27 23:13:56 +00:00