Commit Graph

1045 Commits

Author SHA1 Message Date
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
Ingo Schommer
9260326ee6 ENHANCEMENT Better feedback for validation errors in ModelAdmin
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@73031 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-13 10:19:57 +00:00
Ingo Schommer
644c7e06c6 MINOR Added disabled icons for TableListFields (see r73028)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@73029 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-13 10:08:03 +00:00
Ingo Schommer
770e404fdb BUGFIX Using TableListField_Item.ss in MemberTableField to avoid template duplication and inconsistent feature sets
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@73025 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-13 10:04:58 +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
Ingo Schommer
5b0cf968f0 ENHANCEMENT Showing statusMessages via LeftAndMain.js->statusMessage() double as long - they we're dissappearing in a fraction of a second for short strings like "Error"
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@72977 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-12 16:39:25 +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
Ingo Schommer
9b3b147475 MINOR Updated translations
MINOR Added translations for Catalan - thanks to Bernat and Alex
MINOR Added translations for English (uk) - thanks to Matt and Marti
MINOR Added translations for Spanish (Latin America) - thanks to Antonio, ruben, Miguel, Luis, Carlos, Luciano
MINOR Added translations for Spanish (Mexico) - thanks to Nacho and Antonio
MINOR Added translations for Spanish (Arguentinia) - thanks to Carlos and Luciano
MINOR Added translations for Indonesian - thanks to Fajrin, Lewi, Wirawan, Bima
MINOR Added translations for Norwegian Bokmal - thanks to Emil, Siv, Eskild, Andreas, Johannes, Jana, Carl G.
MINOR Added translations for Serbian (Serbia) - thanks to Jonan and Oliver

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@72774 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-10 12:41:50 +00:00
Sean Harvey
b1045b461c MINOR Merged tinymce toolbar improvement change from cms/branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@72677 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-03-09 05:20:49 +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
55ba6f6cfa BUGFIX Fixed styling of consistent label colours for non-left aligned labels
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71741 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-12 02:47:50 +00:00
Sean Harvey
97d8522e04 MINOR ModelAdmin left hand panel styling tweaks
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71715 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-11 21:57:18 +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
Sean Harvey
fea613c19f BUGFIX Only show the LangSelector dropdown if there's multiple languages available on the site
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71297 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-03 05:12:42 +00:00
Sean Harvey
d28951065e Added missing editor.css
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71284 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-03 04:06:11 +00:00
Sean Harvey
31f530cb0f Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71279 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-03 03:56:56 +00:00
Sean Harvey
75f962b6e9 Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71277 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-03 03:52:06 +00:00
Sean Harvey
34a50e3de6 Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71276 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-03 03:46:15 +00:00
Sean Harvey
77353d7e4f merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71274 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-03 03:39:34 +00:00
Sean Harvey
22b5b6ea7e Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71272 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-03 03:38:04 +00:00
Sean Harvey
32137f61c6 Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71271 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-03 03:36:47 +00:00
Sean Harvey
80b80b5236 Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71270 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-03 03:32:57 +00:00
Sean Harvey
f600ca0645 Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71268 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-03 03:30:43 +00:00
Sean Harvey
9d32dd4026 Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71267 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-03 03:26:44 +00:00
Sean Harvey
3680bbea46 Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71264 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-03 03:22:20 +00:00
Sean Harvey
5687e0a7f4 Added merge info for r71259
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71262 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-03 02:56:24 +00:00
Sean Harvey
3d4630a2c8 Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@71259 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-02-03 02:50:25 +00:00
Ingo Schommer
ad5471afdb BUGFIX Making sure that LeftAndMain->CurrentPage() respects language settings - was returning pages in different language from session after switching between languages in cms
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@70324 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-01-19 00:26:02 +00:00
Ingo Schommer
84f6f5d396 BUGFIX Fixed expanded/unexpanded flags on new tree items - was showing expanded styling (plus icon) with newly created pages
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@70323 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-01-19 00:11:08 +00:00
Ingo Schommer
2591492023 BUGFIX Ensuring that new pages can't be created when in translation mode by disabling the "create..." tree action
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@70322 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-01-19 00:09:55 +00:00
Ingo Schommer
5889def36d ENHANCEMENT Moved language selector in CMS above tree for better visibility, added padding and adjusted dropdown width
ENHANCEMENT Removed "Translating mode" status message above edit form - should be clear by the language dropdown above the CMS tree now

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@70308 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-01-16 04:17:37 +00:00
Ingo Schommer
fd65285cfc ENHANCEMENT Simplifying creation logic of new languages in CMS by reloading complete interface, rather than refreshing partial interface, language dropdown etc.
API CHANGE Removed CMSMain->switchlanguage()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@70307 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-01-16 04:16:19 +00:00
Michael Andrewartha
f855a7512f BUGFIX: fixed scrollbar in safari and firefox3 for the list of pages in site reports and version history #2065
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@70229 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-01-15 21:27:32 +00:00
Ingo Schommer
a46b3286d0 ENHANCEMENT Added htaccess examples for static publishing originally located in online documentation at http://doc.silverstripe.com/doku.php?id=staticpublisher
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@70148 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-01-14 20:36:37 +00:00
Ingo Schommer
bdccea54e1 MINOR Updated translations
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@70105 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-01-13 22:03:39 +00:00
Ingo Schommer
b7ffc6ed5d MINOR Updated language master tables
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@70005 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-01-12 04:59:57 +00:00
Ingo Schommer
d0bb15c41e ENHANCEMENT Added Japanese translation (Thanks Hiroki, Daisuke, Fijii, Shiva, Daniel and Minoru!)
MINOR Updated translations

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@69994 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-01-12 04:35:39 +00:00
Ingo Schommer
b319355c67 ENHANCEMENT Augmenting stage links in CMS with &lang URL parameter if Translatable is enabled
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@69963 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-01-10 12:39:51 +00:00
Ingo Schommer
c8beba696c Merged, debugged and enhanced Translatable patches from branches/translatable at r64523, r64523, 64523, thanks wakeless!
API CHANGE Changed Translatable schema from auxilliary tables (SiteTree_lang, SiteTree_lang_Live) to automatically filtered records on the original table (SiteTree, SiteTree_Live), using $Lang and $OriginalID properties. Incompatible update to old schema, migration script is in the works.
API CHANGE Removed Translatable::get_one(), Translatable::write()
ENHANCEMENT Simplified Translatable tree generation by using getSiteTreeFor() in CMSMain->createtranslation()
ENHANCEMENT Added AllChildrenIncludingDeleted(), augmentNumChildrenCountQuery(),  augmentAllChildrenIncludingDeleted(), augmentStageChildren() to Translatable class to allow for more stable tree generation.
ENHANCEMENT Moved definition of Translatable schema from augmentDatabase() to Translatable->extraStatics()
ENHANCEMENT Changes to the CMS language selection refresh the whole admin interface instead of the tree only. This way we can add a URL parameter ?lang=<lang> to /admin, which makes the specific language bookmarkable and reloadable. Changes to LangSelector.js
ENHANCEMENT Added fallback to ModelAsController->getNestedController() to fetch page with matching URLSegment but different language in case no page is found in the current language.
ENHANCEMENT Added helper methods to Translatable: getTranslation(), hasTranslation(), isTranslation(), findOriginalIDs()
ENHANCEMENT Getters and setters for Translatable->getOriginalPage() etc.
ENHANCEMENT Hooking Translatable into ModelAsController and ContentController initialization in order to call choose_site_lang()
ENHANCEMENT Simplified Translatable->augmentSQL(), augmentWrite() by not using auxilliary tables
ENHANCEMENT Showing clickable links for Translations in Translatable->updateCMSFields()
BUGFIX Modifying Hierarchy/SiteTree Children getters to accept optional "context" which can be used to set a language explicitly through the $Lang property, rather than implicitly reyling on the static Translatable::current_lang()
BUGFIX Fixed TranslatableTest to work with new datamodel
BUGFIX Temporarily disabled cookie/session selection in Translatable::choose_site_lang() until we have a good test suite for the side effects.
MINOR Added "untranslated" CSS styles to tree nodes and marking them as inactive/grey


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@69959 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-01-10 12:15:30 +00:00
Ingo Schommer
300435fb13 MINOR Merged from branches/2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@69958 467b73ca-7a2a-4603-9d3b-597d59a354a9
2009-01-10 11:36:30 +00:00