Developer forum

Forum » Templates » Problem rendering mobile paragraphs on a computer

Problem rendering mobile paragraphs on a computer

Sonni Tost
Reply

Hi there,

I am trying to test a mobile layout on my desktop computer to see if the rendered code is correct.

I have managed to change the layout of the page using ?LayoutTemplate=pathToDesign - but the problem occurs on paragraph level where I use Global:Device.IsMobile to determine what html to render. DW renders the template correctly as it renders the paragraph as if the user agent is a desktop computer - but i want to check the code as it will be rendered on a mobile device.

Is there a querystring that can tell DW to act as a mobile device or tablet? Fx. ?LayoutTemplate=myMobileTemplate&device=mobile

Kind regards

 

Sonni T.


Replies

 
Mikkel Ricky
Reply
This post has been marked as an answer

You can use a "Switch useragent" browser plugin for this, e.g. https://chrome.google.com/webstore/detail/user-agent-switcher/ffhkkpnppgnfaobgihpdblnhmmbodake or https://chrome.google.com/webstore/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg/related.

Best regards,
Mikkel

 

Votes for this answer: 1
 
Sonni Tost
Reply
Thank you! Why didn't I think about that!? :-)

 

You must be logged in to post in the forum