Disable field displaying depending on device type?

More
6 years 11 months ago #67139 by lipatovroman
Hi! Is it possible to disable field displaying depending on device type?
I'm talking not about css hiding, but about not processing field at all.
It is how work Advanced Module Manager.
Thanks.

Please Log in or Create an account to join the conversation.

More
6 years 11 months ago #67141 by ggppdk
Hello

no option for this,
only some fields have parameter for different output of mobiles

You can only create a custom layout in the field and use:
(This code is used in some fields already image field)
Code:
// In component parameters you can force DESKTOP layout for TABLETs $cparams = JComponentHelper::getParams( 'com_flexicontent' ); $force_desktop_layout = $cparams->get('force_desktop_layout', 0 ); // Decide the use 'mobile' output or not $mobileDetector = flexicontent_html::getMobileDetector(); $isMobile = $mobileDetector->isMobile(); $isTablet = $mobileDetector->isTablet(); $useMobile = $force_desktop_layout ? $isMobile && !$isTablet : $isMobile;


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.257 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline