Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create translations using Translatable module #29

Open
wernerkrauss opened this issue Jun 1, 2015 · 5 comments
Open

Cannot create translations using Translatable module #29

wernerkrauss opened this issue Jun 1, 2015 · 5 comments
Labels

Comments

@wernerkrauss
Copy link
Collaborator

Using Translatable module i see the button "Create Translation" but nothing happens...

@stevie-mayhew
Copy link
Contributor

Have you added the TranslatableCatalogExtension to the class? I haven't touched that in a while, might be bugging out now :(

Which version of translatable are you using?

@wernerkrauss
Copy link
Collaborator Author

Hm, no. Added this to my ModelAdmin, but nothing happens.

I guess it's some javascript missing, i see the form for adding a new translation in the tab "Translations", but when i click the button nothing happens. no server call is triggered...

also the TranslatableCatalogExtension doesn't add anything to the searchform on the left side.

@sanderha
Copy link

Did this ever get fixed? :)

@stevie-mayhew
Copy link
Contributor

@sanderha no it hasn't. A fix would be appreciated though!

@sanderha
Copy link

I seem to have found a solution for this issue, however it does not seem too clean.
The fix suggested in this comment: silverstripe/silverstripe-translatable#55 (comment) will make the "create translation" button work, when using pages via ModelAdmin.
This however only creates the pages in SiteTree_Live. To fix this issue, add Versioned::reading_stage('Stage'); to your ModelAdmins init() method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants