2017 © Pedro Peláez
 

contao-bundle contao-remember-language

Contao 4 bundle to redirect to a language saved in a cookie.

image

inspiredminds/contao-remember-language

Contao 4 bundle to redirect to a language saved in a cookie.

  • Saturday, January 20, 2018
  • by fritzmg
  • Repository
  • 1 Watchers
  • 1 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 46 % Grown

The README.md

, (*1)

Contao Remember Language

Contao 4 extension to redirect to a language saved in a cookie when using contao.prepend_locale: true and requesting the domain without any language parameter in the URL., (*2)

Configuration

The extension allows you to configure the following:, (*3)

  • Enable or disable the redirect.
  • Enable or disable saving the current language in a cookie.
  • The name of the cookie.
# Default configuration for extension with alias: "contao_remember_language"
contao_remember_language:

    # Enables the automatic redirect to the saved language.
    enable_redirect:      true

    # Saves the current language as a cookie.
    save_language:        true

    # Name of the cookie where the language is saved.
    cookie_name:          contao_remember_language

Caching

If you use caching, make sure to not add the configured cookie to your COOKIE_WHITELIST. The information of the cookie is only relevant for requests to https://example.org/ (without any path/parameter), and since Contao (at least up to Contao 4.9) always redirects such requests (with a status code other than 301) when using contao.prepend_locale: true, such requests are never cached. Thus, it is not necessary to prevent caching when the request contains the cookie., (*4)

The Versions

20/01 2018

dev-master

9999999-dev http://www.inspiredminds.at

Contao 4 bundle to redirect to a language saved in a cookie.

  Sources   Download

LGPL-3.0-or-later

The Requires

 

The Development Requires

language cookie contao remember

19/01 2018

1.0.0

1.0.0.0 http://www.inspiredminds.at

Adds Animsition options to pages for page transition effects.

  Sources   Download

LGPL-3.0+

The Requires

 

The Development Requires

page contao transition animsition