Giter VIP home page Giter VIP logo

sitecore-fallback-default-language-creation's Introduction

Verndale Adding Language Versions by Default in Sitecore

Purpose
Make it easier to ensure all language versions are added for items, both on creation, or via an explicit ribbon command.

Compatibility
The codebase is compatible with Sitecore 6.6.x releases and at least through Sitecore 7.2.x.
This assumes you are using the latest version of the Partial Language Fallback Module
http://marketplace.sitecore.net/en/Modules/Language_Fallback.aspx

How to build code and deploy the solution
1. When using the fallback module, make sure to compile the source code to get the dll, do not use the one within the package.

2. Download and unzip the Verndale.SharedSource.zip from this repository, it contains a class library
3. The important files in this are CreateVersionInAllLanguagesOnCreate.cs, CreateVersionInAllLanguages.cs, LanguageHelper.cs

4. Download the App_Config folder, there are necessary updates within Sitecore.SharedSource.PartialLanguageFallback.config.example
You can use the whole thing or take the parts from it that you need and add to your fallback.config
It includes an item:created event so that all language versions will be added for an item being created in a path with a new setting (Fallback.PathsToCheckForLanguageVersions)
There is also an update in Commands.config which will add a new command which will be installed in below sitecore package

5. Download and install the Fallback Default Language Creation-1.zip Sitecore package
It includes a core item for adding the Add All Language Versions command to the ribbon

Testing
1. Update the Fallback.PathsToCheckForLanguageVersions in the fallback.config to a path in your sitecore content tree
2. Add a new content item within that path in the sitecore content tree
3. See that all languages in the system have been added as well as the one you explicitly added
4. For an item that already exists that is missing a language version, click it and then click the Add All Language command button in the Versions tab, see that it all language version now exist

Review the blog series about Partial Language Fallback on Sitecore, http://www.sitecore.net/en-gb/Learn/Blogs/Technical-Blogs/Elizabeth-Spranzani.aspx

sitecore-fallback-default-language-creation's People

Contributors

espranzani avatar

Watchers

 avatar  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.