SDL Tridion Webinar The Context Engine
Todays Talk Talk a little bit about current mobile and web development techniques Explain how the Context Engine fits into this Show how to install and get up and running with the Context Engine
Mobile Websites More people connect to the Web over slower, mobile networks. The performance of Web pages is now really important. To increase performance we need to serve only the appropriate files for a device. 3 main common ways mobile web interfaces are being built…
Responsive Design Same content page across all devices. Content is referenced by a single URL. Average page size is around 1.3mb. 3G 40% slower, LTE 12% slower than desktop speeds. 80% + responsive sites send the same assets to all devices. Interfaces become complex client-side CSS and JS applications.
Mobile only website Website Content is easier to tailor should the mobile need to provide a different experience. Average page size is around 180kb. Easier to make separate changes to mobile and desktop websites. – Typically different URL and independent page layouts. Redirection required.
REsponsive + Server Side (RESS) Detects devices server side and delivers features that are optimized for the user of that device. Deliver only what a client device needs. Requires an accurate server side detection mechanism.
Some Comparisons WebsiteTypePage Size (KB) Download speed (Sec) # Requests Starbucks.comResponsive Worldwildlife.orgResponsive Bostonglobe.comResponsive Mobile.walmart.comMobile Amazon.com/gp/aw/h.ht ml Mobile Bbc.co.uk/mobileMobile Edition.cnn.comRESS Ehow.comRESS Wordpress.comRESS Source:
The SDL Tridion Context Engine Content Delivery Module Provides Context – More than just device device detection – Plugs in wonderfully with other SDL tools For the purpose of this presentation were using it for device detection
Installation and configuration Create the device database: – java -Xms1028m -jar lib\cwd_engine-2011.jar – Java -jar cwd-repository-manager.jar cwd- repository.jar {webroot}/bin/repository/
Installation and configuration Configure the ADF cartridge – Cd_ambient_conf.xml Javascript include Thats it
Test installation Use a webpage to output all claims in the claim store Thanks again Peter
Using it….. Uri claimUri = new Uri("taf:claim:context:device:tablet"); string isTablet = Tridion.ContentDelivery.AmbientData.AmbientDataContext. CurrentClaimStore.Get (claimUri); Context Engine Wrapper Library – rapper/ rapper/ if(context.Device.IsTablet) { message = "you are using a tablet device"; } – Configuration possibilities to create device families
Summary RESS is better solution to Responsive. Most websites are built using responsive. The SDL Tridion Context Engine is a great tool to provide Server-Side detection. – Integrates perfectly with other SDL modules,.Net, Java and other applications. – Not sure about future updates to the device database and how these will be released.
Mandatory further reading Using MVC4 Display Modes and the Context Engine: – 4.html Integrating Context Engine and SmartTarget – smarttarget Device families in the Context Engine Wrapper – context-engine-cartridge-wrapper/ context-engine-cartridge-wrapper/ Context Expression Engine – Target Groups Integration –
Questions and Thanks Thanks All Contact me: – – Sources used: – – –