[dev] switch from dynamic to mobile
Thomas Jarosch
thomas.jarosch at intra2net.com
Thu Oct 9 10:25:52 UTC 2014
Hi,
On Thursday, 9. October 2014 11:57:23 Lukas Weiss wrote:
> is it possible for a user to change the view from smartmobile to
> dynamic? i would like to implement a link "view full version".
>
> i found the $conf['user']['force_view'], but this is a global setting.
>
> i tried to use $registry->setView(), but can't find the right point in
> the code where to add this. either the session is not initialized yet,
> so i don't know the user (core.php) or it's too late (hooks).
we had similar requirements. In the end Horde LLC developed
a custom Auth driver based upon the IMAP auth driver for us.
We then hooked the $registry->setView() stuff in the validateAuth() function.
IIRC the normal horde login page has a dropdown field to select the view.
Can't you just use that?
Cheers,
Thomas
More information about the dev
mailing list