[ic] Re: Specify flypage using javascript or another non-database method

DB db at m-and-d.com
Sun Apr 26 19:10:58 UTC 2015

>> Hi all. I'm working an making IC5 site a bit more mobile friendly and so
>> far it's been fairly painless. Using javascript to redirect mobile
>> visitors to the mobile version of a page works well. But I now need a
>> way to make mobile visitors see a different flypage than non-mobile
>> visitors see.
>> PageSelectField looks like one way to change the flypage on a
>> per-product basis but that's not what I need here. Can anyone think of a
>> way to change the flypage using javascript or ome other non-database
>> method? Thanks for any ideas!
> Surely you can detect the presence of a mobile browser? If so,
> you can easily do:
> Sub change_fp <<EOR
> sub {
> 	return unless $Tag->is_mobile();
> 	$Config->{SpecialPage}->{flypage} = 'mflypage';
> 	return;
> }
> Autoload change_fp
> -- 
> Mike Heins
> Perusion -- Expert Interchange Consulting    http://www.perusion.com/
> phone +1.765.253.4194  <mike at perusion.com>

Thanks - I'd been using something like below but I see other ways in the
archives that would probably work better with your example.

<script type="text/javascript">
if (screen.width <= 699) {

More information about the interchange-users mailing list