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

[FeatureRequest] LocalizedFields add option to remove (or limit to) certain languages #5154

Open
ultramegatom opened this issue Oct 28, 2019 · 4 comments

Comments

@ultramegatom
Copy link
Contributor

@ultramegatom ultramegatom commented Oct 28, 2019

Right now a localized field always contains all available system languages.

Some fields however only exist in certain languages. Would be nice if we could decide what languages we want to display.

@roland4432

This comment has been minimized.

Copy link
Contributor

@roland4432 roland4432 commented Nov 12, 2019

If you don't login as admin you can go with the permission views to achieve that:

/bundles/AdminBundle/Resources/public/js/pimcore/object/tags/localizedfields.js

...
//line: 44
        if (pimcore.currentuser.admin || fieldConfig.permissionView === undefined) {
            this.frontendLanguages = pimcore.settings.websiteLanguages;
        } else {
            this.frontendLanguages = fieldConfig.permissionView;
        }
....

Or do you rather think as a global option to select which languages are included? Or on specific localizedfields? Or configure each localizedfield in the class section?

@weisswurstkanone

This comment has been minimized.

Copy link
Contributor

@weisswurstkanone weisswurstkanone commented Nov 12, 2019

@roland4432 he is talking about a specific localizedfield. so on field - level.

@roland4432

This comment has been minimized.

Copy link
Contributor

@roland4432 roland4432 commented Nov 12, 2019

Since you might have the use cases @weisswurstkanone ... is this generic every day requirement?

@ultramegatom

This comment has been minimized.

Copy link
Contributor Author

@ultramegatom ultramegatom commented Nov 12, 2019

Use case would be:
I have 20 languages in my system with multiple localized fields that use these languages.
I do however also have other fields that simply can only exist in 2 specific languages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.