Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Change Home Page


Go to End


847 Views

Avatar
Bahl2

Community Member, 4 Posts

27 September 2016 at 2:54am


Hi guys, I would like to help to change the home page, I took the ready iste, and need to change the language of the site, however I can not understand how you do it, I would to set to en_GB language already was in mysite and changed the _conf, but nothing happens.

Code _conf:

<?php

global $project;
$project = 'mysite';

global $databaseConfig;
$databaseConfig = array(
"type" => 'MySQLDatabase',
"server" => 'localhost',
"username" => 'onwinfo_alemao',
"password" => 'password',
"database" => 'onwinfo_alemao',
"path" => '',
);

// Set the site locale
i18n::set_locale('pt_BR');

// Use _ss_environment.php file for configuration
//require_once("conf/ConfigureFromEnv.php");

Translatable::set_default_locale('pt_BR');

//SS_Log::add_writer(new SS_LogFileWriter('oli.log'));

//SpamProtectorManager::set_spam_protector('InvisibleSpamProtector');

//Config::inst()->update('Email', 'send_all_emails_to', "raymond@biwac.ch");

Email::setAdminEmail('info@zweifuereins.ch');
//Security::setDefaultAdmin('admin','silveradmin');

Director::addRules(100, array(
'' => '->home-pt-br/',
));

Following site structure:

https://snag.gy/0uLKGz.jpg

if they can help me how to change this, I only leave another index with another default language. Thank you!