2010-11-20, 06:09:00
Here's a quick 'n dirty patch to the core that may do the trick in this case...
Edit root index.php, around line 30-31 (GetSimple 2.03) insert this:
(just before the "# define page, spit out 404 if it doesn't exist" line)
Create your pages with slugs like:
sample-page
fr-sample-page
de-sample-page
...
Now you can open (or link to) the e.g. French page with any of these URLs:
domain.com/fr/news/sample-page/ (the one you wanted)
domain.com/news/fr/sample-page/ (another possibility)
...or the "real" ones:
domain.com/news/fr-sample-page/
domain.com/index.php?id=fr-sample-page
Edit root index.php, around line 30-31 (GetSimple 2.03) insert this:
Code:
$langs=array('fr','de','it','jp');
foreach ($langs as $lg) {
if (strpos($_SERVER['REQUEST_URI'],'/'.$lg.'/') !== false) {
$id = $lg.'-'.$id;
break;
}
}
Create your pages with slugs like:
sample-page
fr-sample-page
de-sample-page
...
Now you can open (or link to) the e.g. French page with any of these URLs:
domain.com/fr/news/sample-page/ (the one you wanted)
domain.com/news/fr/sample-page/ (another possibility)
...or the "real" ones:
domain.com/news/fr-sample-page/
domain.com/index.php?id=fr-sample-page