Multilingual Sites - Using Context - SIUC 2011

Post on 25-May-2015

383 views 0 download

Tags:

description

How Web Contexts work in CMS< things to remember plus real-life examples. Presented by Justin Avery at the Squiz International User Conference 2011 in Sydney.

Transcript of Multilingual Sites - Using Context - SIUC 2011

Multilingual Sites

<offtopic>

> Responsive Design• http://bit.ly/responsivesquiz

</offtopic>

Multi-Lingual Sites

> How Context works

> How to Apply Contexts

> Things you should know

> Real world examples

How Contexts Work

> Request to Matrix> Does it match any

conditions?> Show Default / Other

How Contexts Work

How to Apply Contexts

> 3 Steps• Create Context• Create Condition• Configure Condition

How to Apply Contexts - Context Conditions

> Language-Request Header> Other Request Headers> URL of the request> Destination Port> Secure/Insecure connection> GET & Post Variables

How to Apply Contexts - Context Conditions - URL

> Default: /en is set as the default condition displays when no other context is available.

> Spanish: /es must be contained within the url> French: /fr must be contained within the url

and we're going to add> German: /de

so that you can see how easy it can be done.> Live Example

Multi-Lingual Sites

> How Context works

> How to Apply Contexts

> Things you should know

> Real world examples

Things to remember – Page Content

> Each content div within the page contents will inherit the default context until that div is edited within another context. Once that happens, that div within that context will never inherit the default context again.

> If you DO wish to start inheriting from the default context again you need to delete the div and recreate another div

> Nested content can NOT be contextable. If you change the asset that is nested in any context it will update all other contexts. If you require this you should look at using as content snippet.

Things to remember – Metadata

> Contextable or non-contextable.

> No inheritance for Contexable Metadata

> Setting NON-contextable Metadata

> Multi Select Values

Things to remember – Paintlayouts

> Paintlayouts work in the same way as Page Contents for all rules and exceptions

> Develop before updating language

Things to remember - Non Contextable Items

> Design Parse File> CSS > Javascript> Images> Video> Folder (earlier versions)> Datasource> Nested Content Areas> Div Type> REST Resource Asset

Things to remember – URL Design

> Always specify a language• www.yoursite.com/en• www.yoursite.com/es• www.yoursite.com/fr

> URLs are NOT contextable

> www.yoursite.com/en/hello> www.yoursite.com/fr/hello

> www.yoursite.com/es/hola

Things to remember – URLS

> URL’s are NON contextable in Squiz Matrix> URL’s are contexable in Squiz CMS

ALWAYS CHECK WHICH CONTEXT YOU ARE IN BEFORE EDITING

Multi-Lingual Sites

> How Context works

> How to Apply Contexts

> Things you should know

> Real world examples

Real World Examples

> Different Languages

> Members Based Content

Real World Uses – youwin.com/en

Real World Uses – youwin.com/es

Real World Uses – youwin.com/de

Real World Uses – youwin.tv

Real World Uses – youwin.com

> www.youwin.com> Check for cookie> Redirect based on cookie> http://www.maxmind.com/app/mod_geoip> Redirect based on IP> Set Cookie> Override Cookie

Real World Uses – DCD

Real World Uses – DCD

Real World Uses – DCD

Real World Uses – ifl.ac.uk

Lessons

> Check Context> Build in 1 Language (breaking div links)> Consistent Rules (urls)> No Content in the Parse File> Include language variable in Remote Content/REST > Keywords – use _attribute_

Justin Avery

> E: javery@squiz.com.au> T: @justinavery> M: +61407608504

> Questions?