SPEAK 2.0 Helpers

If like me you are starting to move your SPEAK 1.1 applications and components across to 2.0 you will notice there are a fair few differences - one of these is how you access the Helpers in your page code.

e.g: Sitecore.Helpers.url.getQueryParameters(window.location.href)['id']

http://mhwelander.net/2014/07/08/speak-for-newbies-part-6-speak-helpers/

I couldn't actually find the 2.0 equivilent in the documenation but actually with a quick play in the console it was pretty obvious..

Sitecore.Speak.Helpers.url.getQueryParameters(window.location.href)['id']

Mike Robbins and Martin English have a couple of great posts if you get stuck upgradeding to 2.0 and also watch this space - I'll blog anything I find!

Dave Leigh

Web, and long time Sitecore developer based in Bristol, UK, working at Valtech - valtech.co.uk - @valtech.
I occasionally do other things too.