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

Mike Heins mikeh at perusion.com
Sun Apr 26 16:38:53 UTC 2015

Quoting DB (db at m-and-d.com):
> 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';

Autoload change_fp

Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.253.4194  <mike at perusion.com>

There is something fascinating about science. One gets such wholesale
returns of conjecture out of such a trifling investment of fact.
-- Mark Twain

More information about the interchange-users mailing list