Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Translatable: While adding content I get redirected from es_ES to en_Us


Go to End


509 Views

Avatar
SilverstripeLearner

Community Member, 15 Posts

12 April 2017 at 1:17am

The Information

I am developing a website using Silverstripe CMS (version 3.5.2) with Translatable module. I have an custom object called Category that $has_many SubCategory. The SubCategory also $has_many FormFile. An exemple of the structure is here below:

 - Category: -Subcategory1: - FormFile1
                            - FormFile2
             -Subcategory2: - FormFile1

 - Category2: -Subcategory1 - FormFile1

etc...

I am also using the Translatable module for a second language. On that second language I will have different categories, subcategories and files.

_config.php

Object::add_extension('that_page', 'Translatable');
Object::add_extension('Category', 'Translatable');
Object::add_extension('SubCategory', 'Translatable');
Object::add_extension('FormFile', 'Translatable');

The Problem

When I try to add a category for the second language, right after I click create, I get redirected to the default English version in the cms.

If still nobody can find an answer I can provide further code samples.

Thanks.