Jump to content

Recommended Posts

Posted

I think you are going to have to use url segments on branch1, branch2 and the segments being the language names. 

Posted

Check this out my friend:

https://processwire.com/docs/tutorials/how-to-use-url-segments/

It's basically a way to not follow the routing of the page tree, so you can make up any possible route, and prepare your template's code for it, imagine this exist in the template file branch.php:

<?php

if($page->urlSegment1 == "es"){
	$user->language = $languages->get('es');
	// field output will be in spanish!
}elseif($page->urlSemgent1 == "en"){
	$user->language = $languages->get('en');
	// fields will output in english!
}

I'm just not sure how multilang works without the root language segment.

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
  • Recently Browsing   0 members

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