Sitecore Stack Exchange is a question and answer site for developers and end users of the Sitecore CMS and multichannel marketing software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have implemented a custom device tablet in Sitecore, and to test it we wish to render the website as if that device was in use. How do we accomplish that?

Using Sitecore 8.1

share|improve this question
    
Which version of Sitecore you are using? – Harsh Baid 5 hours ago
up vote 6 down vote accepted

The Experience Editor (previously Page Editor) allows you to switch between devices. Also for the Preview mode.

Ribbon > Experience > Click on current device > Select preferred device

Screenshot - Ribbon > Experience > Click on current device > Select preferred device

share|improve this answer

You can also use the Device Simulator.

Switch to Preview mode, then from the View ribbon the Simulator button will be enabled and you can preview the page with a different device.

Device Simulator

This is paricularly useful if you are using Responsive Web Designs. If you are using a custom device you may also have to switch the Device as suggested in the other answers.

share|improve this answer

You can switch the device manually using the built-in query-parameter sc_device in the url, followed by the name or ID of the device:

http://local.mysite.com?sc_device=tablet

http://local.mysite.com?sc_device={eb148a0f-220d-45dd-91fe-03b835e7e887}
share|improve this answer

You can use two things:

If its only about testing the device detection

  • Change the device parameters in URL manually or use Sitecore ribbon menu with steps mentioned by @Dražen

If you want to test the device resolution and do click-thru testing

Sitecore Device Simulator

I have heard about Sitecore's AppCenter Page Preview Services and Device Detection Services but I don't have anything yet to share on that part.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.