Code Monkey home page Code Monkey logo

silverstripe-languageprefix's Introduction

LanguagePrefix module for SilverStripe CMS

  • Supports SilverStripe 3.1.x +
  • For SilverStripe 3.0.x use version 1.0

Introduction

The Language Prefix module allows you to create links with a language prefix for multilingual websites using SilverStripe Translatable. Example:

www.mydomain.com/en/
www.mydomain.com/nl/

Changes in this version

  • LanguagePrefix now uses Translatable's enable_duplicate_urlsegments config setting when allowing duplicate URLSegments

  • Preview mode and Split mode are now supported in the CMS

  • RelativeLink() now includes the languageprefix.

  • It is no longernecessary to define a Link() function in your class

  • PrefixLink() is now deprecated. Use Link() instead

  • SiteTree::get_by_link() now works for all prefixed links, except for homepage links like '/en_US/': get_by_link() won't retrieve the homepage URLSegment for links that are not empty (or '/').

  • Config settings and the enabling of extensions are now handled by the YAML system (see _config/languageprefix.yml).

  • Some other minor upgrades to SilverStripe 3.1

Usage

Setup and usage documentation: docs/en/index.md

Requirements

  • SilverStripe Framework 3.1+ and CMS 3.1+
  • SilverStripe Translatable module

Maintainers

  • Martine Bloem (Martimiz)

silverstripe-languageprefix's People

Contributors

martimiz avatar ekman avatar wernerkrauss avatar

Watchers

James Cloos avatar Filip Likavčan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.