2007-09-15 03:03:23 +02:00
<!-- <div class= "title" ><div style= "background-image : url(cms/images/panels/MySite.png)" >My Site</div></div> -->
2007-07-19 12:40:05 +02:00
<div id= "treepanes" >
2007-09-14 21:37:48 +02:00
<h2 id= "heading_sitetree" class= "selected" >
2007-09-16 18:35:09 +02:00
<img id= "sitetree_toggle_closed" src= "sapphire/images/toggle-closed.gif" alt= "+" style= "display:none;" title= "<% _t('OPENBOX','click to open this box') %>" />
<img id= "sitetree_toggle_open" src= "sapphire/images/toggle-open.gif" alt= "-" title= "<% _t('CLOSEBOX','click to close box') %>" />
<% _t ( 'SITECONTENT TITLE ', 'Site Content and Structure ',PR_HIGH ) %>
2007-09-14 21:37:48 +02:00
</h2>
2007-07-19 12:40:05 +02:00
<div id= "sitetree_holder" >
2009-01-21 22:12:06 +01:00
<div id= "TreeTools" >
2009-01-16 05:02:17 +01:00
<ul id= "TreeActions" >
<li class= "action" id= "addpage" ><button><% _t ( 'CREATE ', 'Create ',PR_HIGH ) %></button></li>
<li class= "action" id= "search" ><button><% _t ( 'SEARCH ', 'Search ',PR_HIGH ) %></button></li>
<li class= "action" id= "batchactions" ><button><% _t ( 'BATCHACTIONS ', 'Batch Actions ',PR_HIGH ) %></button></li>
</ul>
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
2009-04-23 03:46:49 +02:00
<div style= "clear:both;" ></div>
2009-01-16 05:02:17 +01:00
<% control AddPageOptionsForm %>
<form class= "actionparams" id= "$FormName" style= "display: none" action= "$FormAction" >
<% control Fields %>
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
2009-04-23 03:46:49 +02:00
$FieldHolder
2007-07-19 12:40:05 +02:00
<% end_control %>
2009-01-16 05:02:17 +01:00
<div>
2009-01-30 02:20:07 +01:00
<input class= "action" type= "submit" value= "<% _t('GO','Go') %>" />
2009-01-16 05:02:17 +01:00
</div>
</form>
2007-09-16 17:19:17 +02:00
<% end_control %>
2009-01-30 02:20:07 +01:00
2009-01-16 05:02:17 +01:00
<form class= "actionparams" style= "display: none" id= "search_options" action= "admin/filterSiteTree" >
2009-01-21 02:27:14 +01:00
<div>
2009-01-16 05:02:17 +01:00
<input type= "hidden" id= "SiteTreeIsFiltered" value= "0" />
<div id= "SearchBox" >
<input type= "text" id= "SiteTreeSearchTerm" name= "SiteTreeSearchTerm" />
2009-02-02 00:17:17 +01:00
<div id= "searchIndicator" >  ;</div>
2009-01-16 05:02:17 +01:00
<input type= "submit" id= "SiteTreeSearchButton" class= "action" value= "<% _t('SEARCH') %>" title= "<% _t('SEARCHTITLE','Search through URL, Title, Menu Title, & Content') %>" />
2009-01-30 02:20:07 +01:00
</div>
<div id= "ContainerSiteTreeFilterDate" class= "SearchCriteriaContainer" style= "display:none" >
<div id= "TextSiteTreeFilterDate" class= "SearchCriteria" ><% _t ( 'EDITEDSINCE ', 'Edited Since ' ) %>:</div>
<div id= "InputSiteTreeFilterDate" >$SiteTreeFilterDateField</div>
</div>
2007-09-16 17:19:17 +02:00
<% control SiteTreeFilterOptions %>
2009-01-30 02:20:07 +01:00
<div id= "Container$Column" class= "SearchCriteriaContainer" style= "display:none" >
<div id= "Text$Column" class= "SearchCriteria" >$Title:</div>
<input id= "Input$Column" name= "$Column" class= "SearchCriteria" />
</div>
2007-09-16 17:19:17 +02:00
<% end_control %>
2009-01-21 02:27:14 +01:00
<div id= "addCriteria" >
<select id= "SiteTreeFilterAddCriteria" >
2009-01-30 02:20:07 +01:00
<option value= "" ><% _t ( 'ADDSEARCHCRITERIA ', 'Add Criteria . . . ' ) %></option>
2009-01-21 02:27:14 +01:00
<option value= "SiteTreeFilterDate" ><% _t ( 'EDITEDSINCE ', 'Edited Since ' ) %></option>
<% control SiteTreeFilterOptions %>
<option value= "$Column" >$Title</option>
<% end_control %>
</select>
2007-09-16 17:04:09 +02:00
</div>
2009-01-21 02:27:14 +01:00
</div>
2009-01-30 02:20:07 +01:00
2007-09-16 17:04:09 +02:00
</form>
2009-01-30 02:20:07 +01:00
2009-01-16 05:02:17 +01:00
<div id= "batchactionsforms" style= "display: none" >
<form class= "actionparams" style= "border:0" id= "deletepage_options" action= "admin/deleteitems" >
<p><% _t ( 'SELECTPAGESACTIONS ', 'Select the pages that you want to change & ; then click an action:') %></p>
<div>
<input type= "hidden" name= "csvIDs" />
<input type= "submit" id= "action_delete_selected" class= "action delete" value= "<% _t('DELETECONFIRM','Delete the selected pages') %>" />
</div>
</form>
2007-09-16 17:04:09 +02:00
<div>
2009-01-16 05:02:17 +01:00
<form class= "actionparams" style= "border:0" id= "publishpage_options" action= "admin/publishitems" >
<input type= "hidden" name= "csvIDs" />
<div id= "ShowChanged" >
<input type= "checkbox" id= "publishpage_show_drafts" /> <label for= "publishpage_show_drafts" ><% _t ( 'SHOWONLYCHANGED ', 'Show only changed pages ' ) %></label>
</div>
<input type= "submit" id= "action_publish_selected" class= "action" value= "<% _t('PUBLISHCONFIRM','Publish the selected pages') %>" />
</form>
</div>
</div>
<% control DuplicatePagesOptionsForm %>
<form class= "actionparams" id= "duplicate_options" style= "display: none" action= "admin/duplicateSiteTree" >
<p><% _t ( 'SELECTPAGESDUP ', 'Select the pages that you want to duplicate, whether it \ 's children should be included, and where you want the duplicates placed ' ) %></p>
<div>
<input type= "hidden" name= "csvIDs" />
<input type= "submit" value= "Duplicate" />
2007-09-16 17:04:09 +02:00
</div>
</form>
2009-01-16 05:02:17 +01:00
<% end_control %>
2009-04-30 07:39:12 +02:00
<div class= "checkboxAboveTree" >
<div>
<input type= "checkbox" id= "sortitems" /> <label for= "sortitems" ><% _t ( 'ENABLEDRAGGING ', 'Allow drag & ; drop reordering', PR_HIGH) %></label>
</div>
<div>
<input type= "checkbox" id= "showdeletedpages" /> <label for= "showdeletedpages" ><% _t ( 'SHOW_DELETED_PAGES ', 'Show deleted pages ', PR_HIGH ) %></label>
</div>
2007-07-19 12:40:05 +02:00
</div>
2009-04-30 07:39:12 +02:00
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
2009-04-23 03:46:49 +02:00
<% if IsTranslatableEnabled %>
<div id= "LangSelector_holder" >
Language: $LangSelector
2009-01-21 22:24:40 +01:00
</div>
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
2009-04-23 03:46:49 +02:00
<% end_if %>
</div>
<div id= "sitetree_ul" >
$SiteTreeAsUL
</div>
2007-07-19 12:40:05 +02:00
</div>
2007-11-05 11:10:14 +01:00
<div id= "publication_key" >
<% _t ( 'KEY ', 'Key: ' ) %>
<ins style= "cursor: help" title= "<% _t('ADDEDNOTPUB','Added to the draft site and not published yet') %>" ><% _t ( 'NEW ', 'new ' ) %></ins>
<del style= "cursor: help" title= "<% _t('DELETEDSTILLLIVE','Deleted from the draft site but still on the live site') %>" ><% _t ( 'DEL ', 'deleted ' ) %></del>
<span style= "cursor: help" title= "<% _t('EDITEDNOTPUB','Edited on the draft site and not published yet') %>" class= "modified" ><% _t ( 'CHANGED ', 'changed ' ) %></span>
2009-03-10 23:10:01 +01:00
<span style= "cursor: help" title= "<% _t('NOTINMENU','Excluded from navigation menus') %>" class= "notinmenu" ><% _t ( 'HIDDEN ', 'hidden ' ) %></span>
2007-11-05 11:10:14 +01:00
</div>
2007-09-16 22:52:56 +02:00
<!--
<div id= "search_holder" style= "display:none" >
2007-07-19 12:40:05 +02:00
<h2>Search</h2>
2007-09-16 22:52:56 +02:00
<div class= "unitBody" ></div>
</div>
-->
2007-07-19 12:40:05 +02:00
2007-09-14 21:37:48 +02:00
<h2 id= "heading_versions" >
2007-09-16 18:35:09 +02:00
<img id= "versions_toggle_closed" src= "sapphire/images/toggle-closed.gif" alt= "+" title= "<% _t('OPENBOX') %>" />
<img id= "versions_toggle_open" src= "sapphire/images/toggle-open.gif" alt= "-" style= "display:none;" title= "<% _t('CLOSEBOX') %>" />
<% _t ( 'PAGEVERSIONH ', 'Page Version History ' ) %>
2007-09-14 21:37:48 +02:00
</h2>
2007-07-19 12:40:05 +02:00
<div class= "listpane" id= "versions_holder" style= "display:none" >
<p class= "pane_actions" id= "versions_actions" >
2009-01-20 03:23:06 +01:00
<span class= "versionChoice" >
<input type= "checkbox" id= "versions_comparemode" /> <label for= "versions_comparemode" ><% _t ( 'COMPAREMODE ', 'Compare mode ( click 2 below ) ' ) %></label>
</span>
<span class= "versionChoice" >
<input type= "checkbox" id= "versions_showall" /> <label for= "versions_showall" ><% _t ( 'SHOWUNPUB ', 'Show unpublished versions ' ) %></label>
</span>
2007-07-19 12:40:05 +02:00
</p>
<div class= "unitBody" >
</div>
</div>
2008-11-10 05:07:03 +01:00
2007-09-14 21:37:48 +02:00
<h2 id= "heading_reports" >
2007-09-16 18:35:09 +02:00
<img id= "reports_toggle_closed" src= "sapphire/images/toggle-closed.gif" alt= "+" title= "<% _t('OPENBOX') %>" />
<img id= "reports_toggle_open" src= "sapphire/images/toggle-open.gif" alt= "-" style= "display:none;" title= "<% _t('CLOSEBOX') %>" />
<% _t ( 'SITEREPORTS ', 'Site Reports ' ) %>
2007-09-14 21:37:48 +02:00
</h2>
2007-07-19 12:40:05 +02:00
<div class= "listpane" id= "reports_holder" style= "display:none" >
2007-09-16 18:35:09 +02:00
<p id= "ReportSelector_holder" >$ReportSelector <input class= "action" type= "submit" id= "report_select_go" value= "<% _t('GO','Go') %>" /></p>
2007-07-19 12:40:05 +02:00
<div class= "unitBody" >
</div>
</div>
2008-02-25 03:10:37 +01:00
</div>