How can i show a module only for mobile devices?!

avra911
14 years, 2 months ago
Hello, i was wonder how can i show a module in the default site (desktop/standard version) only for mobile devices only. Just because i want to show Mobile Version link and Standard Version in the website only if the user agent is mobile and not for desktop users. thanks in advanced, razvan
i tried with: $MobileJoomla =& MobileJoomla::getInstance();
and $MobileJoomla->getMarkup() in the template,
but shows me Call to a member function getMarkup()
dryabov
14 years, 2 months ago
As to "Select Markup" module, such a behaviour is implemented in MJ0.9.11 (will be released today).
avra911
14 years, 2 months ago
so i can use the code from mod_mj_markupchooser.php to get $saved_markup?
when i use: $MobileJoomla_Device['markup'] in the iphone template is showing the device name, browsing with the mobile phone. but when i add the code in the "desktop"/"standard" template is showing nothing, still browsing with the mobile
avra911
14 years, 2 months ago
ok, i wait until 0.9.11 is released

i tried to install mobilejoomla-mobilejoomla-1601d6f.tar but give me blank page
thanks,
razvan

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.