Different Pages For Mobile

Instead of having pages that change their layout according to media size, would it be possible to send someone to a completely different screen for desktop, mobile and tablet?

For my purposes they are different enough to warrant a different page; the collapsible screens never look good for me.

By send I suppose I really mean auto-detect. I could obviously give them a button choice.

2 Likes

Good suggestion! Moving to “Feature Requests”.

I’ve tried trapping form resize events but it won’t let me. Eg :

def rs(**event_args):
  print("width=",self.width)

self.set_event_handler("resize",rs)

I couldn’t find any events I could trap like that. Complained that wasn’t available.

Don’t suppose there is a workaround for this, is there?

I’m going to put a “Switch To Mobile Version” button on the main page for now, but a way to detect the current screen width (or master container width) would be ideal.

(I’m guessing I could probably do it in a custom HTML page but not in a “normal” page).

I have created a demo showing how to do this in custom HTML