Skip to content

Instantly share code, notes, and snippets.

@thelebster
Forked from Mouad-BGD/Modules
Created February 11, 2016 14:10
Show Gist options
  • Select an option

  • Save thelebster/d18de5d2931b3f768c6e to your computer and use it in GitHub Desktop.

Select an option

Save thelebster/d18de5d2931b3f768c6e to your computer and use it in GitHub Desktop.
drupal
Set prefix for all language evene default will solve verry errors
go to Language/ edit English. Set prefix for it (all language must have prefix).
The default frontpage needs to be applied for EACH language (didnt know that). In my case for:
---> admin/settings/site-maintenance
---> /en/admin/settings/site-maintenance
---> /es/admin/settings/site-maintenance
<?php
function MYTHEME_preprocess_block(&$variables, $hook) {
if ($variables['block']->module == 'nodeblock') {
$variables['elements']['#block']->subject = NULL;
}
}
?>
or simply just add <none> to title block
Actually configure Postfix or Sendmail for PHP mail() is the same. Both of them run the /usr/sbin/sendmail binary. It is quite confusing if we just look at the name of the binary but this is what Postfix did.
For more information, take a look at the Postfix Manual – sendmail.
For the PHP setting, open the /etc/php5/apache2/php.ini and configure the sendmail_path.
php.ini
1 ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
2 ; http://php.net/sendmail-path
3 sendmail_path = "/usr/sbin/sendmail -t -i"
Multi-language
Language icons
Translation Management
translation table
if the default set up didnt work (http://drupal-translation.com/content/setting-front-page-language) then use this guide;
have experienced the same problem and I managed to solve it by specifying prefix for both languages. Then I have edited site info for:
English:
example.com/en/admin/settings/site-information
and specified -Default front page:
example.com/en/ node/7 (node number of home English)
and Polish:
example.com/pl /admin/settings/site-information
and specified -Default front page:
example.com/en/ node/11 (node number of home Polish)
Setup with several domain names in D7
I was searching how to setup with several domain names.
First : in Config > Regional and language > Languages > Detection and Selection => enable URL then configure check domain.
Second : in Config > Regional and language > Languages edit each language and setup the domain name
Thrid : login in each website to setup the Default front page in Config > Site information
That's all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment