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

Add feature to generate slug from another language #25

Open
h3nn3s opened this issue Oct 4, 2021 · 0 comments
Open

Add feature to generate slug from another language #25

h3nn3s opened this issue Oct 4, 2021 · 0 comments

Comments

@h3nn3s
Copy link

h3nn3s commented Oct 4, 2021

We needed a possibility to generate the slugs of some specific languages from another translation.
So we evaluated a bunch of extensions and found out, no one offers such a feature.

Something like this TSconfig could configure the SlugModifier:

TCEMAIN.pages.slug.generatorOptions {
    languageMapping {
        1 {
            target = 3
            source = 1
        }
        2 {
            target = 4
            source = 0
        }
    }
}

sys_language_uid 1 = german
sys_language_uid 2 = english
sys_language_uid 3 = chinese
sys_language_uid 4 = russian

Chinese pages would get english paths.
Russian pages would get path segments from default/german language

We think, this feature could fit best for EXT:masi. What do you think?
We could provide a PR for this feature, if you are interessted

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

No branches or pull requests

1 participant