Jump to content

Redirects module multi-language


nabo
 Share

Recommended Posts

I installed the ProcessRedirects module from @apeisa 

It's a simple and brilliant module and work perfectly. I try to extend it adding a multi-language functionality.

I add this rows to the module to create select options with current active languages

if (wire('modules')->isInstalled('LanguageSupport')){
$field = $this->modules->get("InputfieldSelect");
$field->label = 'Language';
$field->attr('id+name','redirect_language');
$field->addOption(''); 
foreach(wire('languages') as $l) $field->addOption($l->id, $l->title); 
$form->add($field);
}

I would like to select a page, than choose a language to return correct language url
For example, if I choose the "About" page and the German language, the result must be "/de/uber/"

Unfortunately javascript that bind "pageSelected" function return the default page url

Link to comment
Share on other sites

10 hours ago, adrian said:

Just pinging @Mike Rockett who develops the Jumplinks module which is a much more feature-rich version of the Redirects module. I know he is working on a new version of JL - perhaps multi-language will make it in?

Indeed it will - but the plate has been filled once again, and haven't had a chance to do the refactoring mentioned on the roadmap before I continue with features. The composer issue kinda messed things up for me. Sorry for the delays...

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...