symfony-cmf / core-bundle

Provides some basic helpers for rendering content documents
https://cmf.symfony.com
24 stars 33 forks source link

Filter by locales #188

Open damonsson opened 8 years ago

damonsson commented 8 years ago

Is it possible filter static content by locales? TranslatableExtension.php doesn't have method configureDatagridFilters. If i wish filter content by language, what i must do?

I tried with add method configureDatagridFilters with content $datagridMapper->add('locales', 'doctrine_phpcr_string'); but I had error Could not find a mapped field or association named "locales" for alias "a"

dbu commented 8 years ago

the locales are implicit. depending on your set up, it means either a child node for the corresponding locale or translated properties exist in your locale.

there is https://github.com/sonata-project/SonataTranslationBundle/ which should make the translation things in this bundle obsolete. maybe @nicolas-bastien where this could belong (if its not already provided)?