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

Multilanguage page urls #1

Open
rolandtoth opened this issue Jun 1, 2016 · 3 comments
Open

Multilanguage page urls #1

rolandtoth opened this issue Jun 1, 2016 · 3 comments

Comments

@rolandtoth
Copy link

Thanks for the module, been using it on some sites and it's a great help.

However, on a multilanguage site if I "Select a page", always the URL of the default language is what I get, not the localized URL.

Using a Page field and selecting a page works just fine, the localized URL is given back.

@gmclelland
Copy link
Contributor

@rolandtoth You probably already know this, but if you enable the AdminLangSwitcher module included with the AdminOnSteriods module and change the admin language to something else like German then the processwire-fieldtype-assisted-url module will prefix the url's with the German versions of the selected page.

Is that what you were hoping for? I'm not sure what would be the best way to allow a user to choose what language?

  • extend the page list picker to include an option for each language? choose English, choose German, choose Spanish?
    edit page about pw3multilingual dev 2016-10-28 12-05-58
  • maybe wrap all the fields inside the modal in horizontal jquery tabs for each language like a regular multilingual field?
    edit page about pw3multilingual dev 2016-10-28 11-55-05
  • use a javascript language switcher(a select input) to modify the selected link's value inside the modal dialog somehow?
    Probably the easiest.
  • change the page picker and autocomplete to list all versions of each page?
    Home - EN
    Home - ES
    Home - DE
    About - EN
    About - ES
    About - DE
    This would provide a lot clutter.
  • change link fields to store the page id for internal links instead of the path? then have fieldtype-assisted-url return the page id instead of the path? When the link field is rendered to the page it could change based on the site's language?
  • anybody else have any ideas on how this could work?

I don't know if any of this is possible. I'm new to Processwire and multilingual so I'm probably missing something. I just thought I would throw out some ideas.

@marcostoll
Copy link
Owner

All I did when I orginially implemented this module was to trigger the add-link-dialogue ProcessWire opens, when you click the corrensponding button in the CKE richtext editor and grab the results.

I never used multilanguage sites in ProcessWire, so I don't know what this dialogue does if you are in a multilanguage scenario.

@gmclelland
Copy link
Contributor

I spun up a development site using the multilingual profile. All the options(page in the assisted-url dialog will will use the user's language by default. Currently the only way to choose a page in a different language is to the AdminLangSwitcher module, but that reloads the entire page.

I submitted some ideas that might help this at rolandtoth/AdminOnSteroids#22.

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

3 participants