Commit Graph

89 Commits

Author SHA1 Message Date
Hamish Friedlander
29ab106af8 ENHANCEMENT: Correct issue with SiteTree filtering not persisting and add drop down for page type and clear button. Part of a re-work of the search system
@todo: Tests, speed optimisation, proper connection of filtering with tree control checkboxes

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@76779 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:20 +13:00
Will Rossiter
617a60de49 BUGFIX: fixed treedropdownfield cropping long names off
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@76435 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:19 +13:00
Will Rossiter
664a5e113a MINOR: fixed sitetree checkboxs layout in IE
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@76434 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:19 +13:00
Sean Harvey
a0f7e9f1a7 Reverted r69828
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@75812 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:18 +13:00
Sam Minnee
820d6b92cd ENHANCEMENT: Added 'show deleted pages' function to CMS, with a restore page option.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@75737 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:17 +13:00
Sean Harvey
fbf54ad2aa Merged r75696 from cms/trunk
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@75703 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:16 +13:00
Ingo Schommer
74fad6a1d0 Merging refactored Translatable from trunk, and related changes to CMSMain
------------------------------------------------------------------------
r69959 | ischommer | 2009-01-11 01:15:30 +1300 (Sun, 11 Jan 2009) | 18 lines

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

------------------------------------------------------------------------
r70307 | ischommer | 2009-01-16 17:16:19 +1300 (Fri, 16 Jan 2009) | 2 lines

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()
------------------------------------------------------------------------
r70308 | ischommer | 2009-01-16 17:17:37 +1300 (Fri, 16 Jan 2009) | 2 lines

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
------------------------------------------------------------------------
r70322 | ischommer | 2009-01-19 13:09:55 +1300 (Mon, 19 Jan 2009) | 1 line

BUGFIX Ensuring that new pages can't be created when in translation mode by disabling the "create..." tree action
------------------------------------------------------------------------
r70323 | ischommer | 2009-01-19 13:11:08 +1300 (Mon, 19 Jan 2009) | 1 line

BUGFIX Fixed expanded/unexpanded flags on new tree items - was showing expanded styling (plus icon) with newly created pages
------------------------------------------------------------------------
r70324 | ischommer | 2009-01-19 13:26:02 +1300 (Mon, 19 Jan 2009) | 1 line

BUGFIX Making sure that LeftAndMain->CurrentPage() respects language settings - was returning pages in different language from session after switching between languages in cms
------------------------------------------------------------------------
r71297 | sharvey | 2009-02-03 18:12:42 +1300 (Tue, 03 Feb 2009) | 1 line

BUGFIX Only show the LangSelector dropdown if there's multiple languages available on the site
------------------------------------------------------------------------
r73343 | ischommer | 2009-03-19 06:14:02 +1300 (Thu, 19 Mar 2009) | 1 line

BUGFIX Changed CSS selector for TranslationTab javascript behaviour to be less specific
------------------------------------------------------------------------
r73344 | ischommer | 2009-03-19 06:14:59 +1300 (Thu, 19 Mar 2009) | 1 line

BUGFIX Checking for existence of original before trying to get translation in LeftAndMain->currentPage()
------------------------------------------------------------------------
r73345 | ischommer | 2009-03-19 06:18:52 +1300 (Thu, 19 Mar 2009) | 3 lines

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
------------------------------------------------------------------------
r73469 | ischommer | 2009-03-20 21:49:27 +1300 (Fri, 20 Mar 2009) | 1 line

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
------------------------------------------------------------------------
r74071 | ischommer | 2009-04-04 10:24:59 +1300 (Sat, 04 Apr 2009) | 1 line

BUGFIX Fixed Form_EditForm_Locale reference in LeftAndMain_right.js (used to be Form_EditForm_Lang)
------------------------------------------------------------------------
r74072 | ischommer | 2009-04-04 10:26:51 +1300 (Sat, 04 Apr 2009) | 1 line

MINOR Using Translatable::choose_site_locale() instead of choose_site_lang() in LeftAndMain->init()
------------------------------------------------------------------------
r74951 | ischommer | 2009-04-22 16:23:56 +1200 (Wed, 22 Apr 2009) | 1 line

BUGFIX Fixed CMSMainTest->testThatGetCMSFieldsWorksOnEveryPageType() - was comparing a string $class with instanceof() instead of comparing the actually created instance
------------------------------------------------------------------------



git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@74988 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:13 +13:00
Hamish Friedlander
429749535b MINOR: Add disabled class to InlineFormAction, adjust Folder to use InlineFormAction rather than LiteralField for "Delete unused thumbnails" button.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@74168 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:11 +13:00
James Kirkus-Lamont
07c83610a0 restored image panel showing 3 across (#3670)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@72602 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:06 +13:00
James Kirkus-Lamont
c17bc65432 BUGFIX: removed doubled up pipes and border on switch view links in footer.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@71797 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:06 +13:00
James Kirkus-Lamont
5a7b5fd7fa BUGFIX: cms ui, fixed loading spinner style
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@71177 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:05 +13:00
James Kirkus-Lamont
cf372d1e05 BUGIX: CMS UI search spinner style tweak
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@71170 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:05 +13:00
James Kirkus-Lamont
0105f36866 BUGIX: CMS UI changed search spinner, hide search button while processing (better interaction feedback)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@71169 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:05 +13:00
James Kirkus-Lamont
d8687d4063 BUGFIX: CMS UI site content > search > add criteria select element now returns back to prompt & tweaked layout
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70994 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:04 +13:00
James Kirkus-Lamont
7efb4ba97e BUGFIX: cms ui text size in righthand image panel
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70681 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:02 +13:00
James Kirkus-Lamont
85a9b878d8 BUGFIX: cms ui removed extra padding from bottom of tools
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70573 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:48:00 +13:00
James Kirkus-Lamont
a03ef0e9b9 BUGFIX: cms ui tidying up tree tools
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70507 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:57 +13:00
James Kirkus-Lamont
0e0b20a8f9 BUGFIX: cms ui tidying up padding of tree tools elements
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70496 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:56 +13:00
James Kirkus-Lamont
e30a18ca3b BUGFIX: site tree form element alignment
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70404 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:56 +13:00
James Kirkus-Lamont
37b0ae4eeb BUGFIX: cms ui sitetree tools padding
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70396 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:56 +13:00
James Kirkus-Lamont
a9733bc767 BUGFIX: cms ui sitetree padding across cms sections
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70393 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:55 +13:00
James Kirkus-Lamont
f64c1ec35b BUGFIX: cms ui fixed width of tools at top of site tree
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70388 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:55 +13:00
Will Rossiter
df15366ee1 BUGFIX: fixed site tree padding issue
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70377 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:55 +13:00
James Kirkus-Lamont
d9d512b47c fixed ajax button alignment
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70372 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:55 +13:00
Will Rossiter
b9e07bba5b BUGFIX: fixed positioning on site tree actions on left tree for Security and comment tags
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70356 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:55 +13:00
James Kirkus-Lamont
c948a45176 cms ui: site tree tools visual update
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70303 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:55 +13:00
James Kirkus-Lamont
b7e2a51c64 cms ui fix: adding separator above allow drag and drop
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70206 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:54 +13:00
Sean Harvey
1e4083c290 BUGFIX Fixed styling for caption checkbox field on the right hand image panel in CMSMain
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@69828 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:52 +13:00
Will Rossiter
a6d0b5eb0c MINOR: search interface design improvements
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@69706 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:51 +13:00
Ingo Schommer
62a064ceab ENHANCEMENT Improved styling of side reports
ENHANCEMENT Added .message styles to cms/css/layout.css

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@69449 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:49 +13:00
Andrew O'Neil
cd034f570c BUGFIX: Fix uglyness when title is longer than the tree dropdown field
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@68875 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:48 +13:00
Ingo Schommer
ca4a4a9c2f MINOR Styling for input.disabled
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@68195 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:46 +13:00
Sean Harvey
9fa7446355 BUGFIX Avoid ugly border in CMS forms by adding "border: none" in CSS to cms/css/layout.css
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@67506 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:44 +13:00
Sean Harvey
4a60bb53d9 MINOR Removed old references to "rightbottom", which is now obsolete and caused a big box to appear in the CMS sometimes
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@66385 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:39 +13:00
Sean Harvey
75df34d78e BUGFIX Tidied up messages in flash uploader right hand panel in CMS
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@65825 467b73ca-7a2a-4603-9d3b-597d59a354a9
2011-02-02 17:47:35 +13:00
Will Rossiter
98b347276c MINOR: fixed formatting on no images found
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@63608 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-10-03 04:50:13 +00:00
Ingo Schommer
a317c50186 BUGFIX decrease width of elements in image/flash/link panel on right-hand side to avoid close-button being shoved off to the void (#1669)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@63079 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-25 14:17:14 +00:00
Ingo Schommer
3332ba3e42 Link Editor: Close button dissapears in Firefox 3 (#2478)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@63078 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-25 14:08:09 +00:00
Sam Minnee
dcb9e53ed0 Updated ModelAdmin.js to use $ instead of jQuery for executing jQuery items.
Added support for specifying a SearchClassSelector() method on ModelAdmin, which returns 'tabs' or 'dropdown', to enable a better UI for ModelAdmins that manage a large number of different classes.
Updated ModelAdmin's javascript to provide more status indicator (loading icons, success/failure messages), using HTTP status codes and custom status text.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@62334 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-09-13 04:45:30 +00:00
Sam Minnee
8784d965d5 Fixed layout of CMS RHS panel to suit new form HTML structure
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@60789 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-08-14 22:38:58 +00:00
Ingo Schommer
e8b0754250 BUGFIX Changed span.middleColumn to .middleColumn in cms_right.css in preparation for building proper HTML/XHTML nesting in formfields
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@59285 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-07-28 07:42:27 +00:00
Sean Harvey
b6bff63b10 Styling, and tweak to show logged in user even if first name doesn't exist
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44572 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-11-11 02:43:23 +00:00
Sean Harvey
a8934d4354 Right align contentpanel action buttons
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44556 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-11-09 03:49:36 +00:00
Sean Harvey
eddea31429 Pulled #right out of Layout into it's own cms_right file
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44549 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-11-09 02:58:25 +00:00
Sean Harvey
11def0fbf2 Overflow shouldn't happen on main #right div - it's resizing is controlled by js
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44547 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-11-09 02:55:34 +00:00
Andrew O'Neil
ff104381ea Remove stuff that breaks IE
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44536 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-11-09 01:07:42 +00:00
Sean Harvey
d843553e4c Fixed search CSS, and repeat background in IE6 of site tree root node
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44517 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-11-08 04:43:19 +00:00
Andrew O'Neil
86c7247621 Clean up insert flash pane
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44496 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-11-08 02:08:50 +00:00
Sean Harvey
da9539d48e Added scrollbar to images on right panel - checked in IE6/7 Safari and Firefox
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44486 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-11-07 23:41:40 +00:00
Will Rossiter
43fa438351 more fixs to that menu
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44485 467b73ca-7a2a-4603-9d3b-597d59a354a9
2007-11-07 22:59:28 +00:00