Image alignment elements have been changed slightly. There are no longer any <DIV> elements created with the images using the insert image toolbar in the CMS.
All of these selectors in your typography.css are affected:
They need to be changed to the following (respectively):
Here's an example of how the default Blackcandy theme was changed:
The datamodel for the Translatable extension was changed from multiple language tables to multiple rows for each translated record in the original table. We've also introduced the concept of “Translation groups”, which means not every translated record has to exist in a “master language”. Please review our updated documentation on how to enable Translatable.
If you are upgrading an existing database with existing translations, you'll need to run our Migration Script before using the database.
For in-depth discussion of the schema changes and translation groups, please refer to our developer mailinglist: 1 and 2.
It is no longer possible to exclude certain properties on a DataObject from being translatable. This is a limitation by our database schema choice. See discussion on our mailinglist and ticket #3722.
Every page is now forced to have a unique URL, different languages can't be switched by appending a ?lang=xx property any longer. Languages don't have to be set in sessions or cookies, as every request is able to determine the language for the remaining site by inspecting the URL. Unique URLs are enforced because of SEO concerns, problematic caching on proxies, browser and framework-level, as well as difficult debugging with session states. See discussion on our mailinglist.
The configuration statics for ModelAdmin have been changed from protected to public, so that Object::get_static() can access them. In particular the following static variables have been changed.
ModelAdmin::$managed_modelsModelAdmin::$collection_controller_classModelAdmin::$record_controller_classModelAdmin::$model_importersModelAdmin::$page_lengthBecause of this, you will need to change the static definitions in your ModelAdmin subclasses. For example, you should change this:
class MyCatalogAdmin extends ModelAdmin { protected static $managed_models = array( 'Product', 'Category' ); ... }
To this:
class MyCatalogAdmin extends ModelAdmin { public static $managed_models = array( 'Product', 'Category' ); ... }
* Use Object::add_extension('SiteTree','Translatable) instead of Translatable::enable()
* Use Object::remove_extension('SiteTree','Translatable) instead of Translatable::disable()
Object::has_extension('SiteTree','Translatable) instead of Translatable::is_enabled()''| Deprecated | New |
|---|---|
| get_homepage_urlsegment_by_language() | get_homepage_urlsegment_by_locale() |
| is_default_lang() | is_default_locale() |
| set_default_lang() | set_default_locale() |
| get_default_lang() | get_default_locale() |
| current_lang() | current_locale() |
| set_reading_lang() | set_reading_locale() |
| get_reading_lang() | get_reading_locale() |
| default_lang() | default_locale() |
| get_by_lang() | get_by_locale() |
| get_one_by_lang() | get_one_by_locale() |
| isTranslation() | <no replacement> |
| choose_site_lang() | choose_site_locale() |
Please use comments for notes, tips and corrections about the described
functionality.
Use the Silverstripe Forum to
ask questions.