-
Notifications
You must be signed in to change notification settings - Fork 21
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
Missing Support for language URL override in v4 #79
Comments
The variables are still there, if I understand what you're refering to, they're in the you should be able to override them in your site specific config.php file. As an example from the demos-php/config/config.php file //$_SITE['wb_php_root'] and $_SITE['wb_core_root'] are set in the following file
/* **************************************
* The config-path.php file is intended to be used with the demos-php to
* simplify deployment to various webservers. Change the $_SITE['wb_php_root']
* and $_SITE['wb_core_root'] variables to point to the directory where
* the /dist-php and core /dist folders respectivly exist
*/
$_SITE['wb_php_root'] = "/wet-boew-php/";
$_SITE['wb_core_root'] = "/theme-gcwu-fegc/dist/";
//include the standard distribution config with the default settings
include $_SERVER['DOCUMENT_ROOT'] . $_SITE['wb_php_root'] . "/dist-php/config/config.php";
/* Override variables from the dist-php config files here for the specific site */
//modify to point to your sites search implementation
$_SITE['wb_search_file'] = $_SITE['wb_php_root'] ."/demos-php/search/search.php";
//enable if deployed from github. Comment out if demos deployed from zip file
$_SITE['wb_site_href_en'] = $_SITE['wb_php_root'] . "/demos-php/index-en.php";
$_SITE['wb_site_href_fr'] = $_SITE['wb_php_root'] . "/demos-php/index-fr.php";
--> //Modify the language selection link to point to whatever script suits your
//site or keep the default language script
// ** This is the default language script set in the /dist-php/config/config.php file **
//$_SITE['wb_cmblang_href_en'] = $_SITE['wb_cmblang_href_fr'] = $_SITE['wb_php_dist_folder'] . "/langselect/lang.php";
$_SITE['wb_terms_href_en'] = $_SITE['wb_core_dist_folder'] . "/License-en.html";
$_SITE['wb_terms_href_fr'] = $_SITE['wb_core_dist_folder'] . "/Licence-fr.html"; |
@michael-milette Is this issue resovled? |
Sorry, missed your reply. I'll download the latest and let you know. |
There's been quite a bit of restructuring for the variant to support themes. |
Hi @upsonp
In wet-boew-php v3.1, I could override the URL of the default language switcher using the following variables:
Could you please put back the ability to override language selection links in wet-boew-php v4 ? The 2 letter language code variation would be fine:
Best regards,
Michael
The text was updated successfully, but these errors were encountered: