Remove certain content for iphone

lukelee
13 years, 6 months ago
for exsample, on this page:
zammitroofing.com.au/roofing/custom-orbr.html

I want to remove the top images, but keep the rest of the content. Is there any tags we can use, such as: class="not_mobile", then we just put in the div and the content will be hidden on iphone or other mobile device.
dryabov
13 years, 6 months ago
We have a plugin to support "tags" in content like "{mobile}...{/mobile}", "{desktop}...{/desktop}", etc.
Hope it will be published in our Extensions directory soon (but after MJ0.9.13 will be released).
level420
13 years, 5 months ago
Any news on this? When will the plugin be available? Any Roadmap?

Thank you for your help.
Best regards.

BTW: joomla mobile is great!!!
level420
13 years, 5 months ago
So obviously I'm very impatient.

Here is a plugin which (nearly) does what the topic says: a content plugin which is able to write device specific content within an article. At the moment it only distinguishes between desktop an mobile device.

The syntax is:
{mjcontent type="desktop"}desktop visible content here{/mjcontent}

to show the content with the normal desktop template only.

{mjcontent type="mobile"}mobile visible content here{/mjcontent} 

to show the content with the joomla mobile template only.

Note: no waranty or reponsibility for data loss or damage or whatsoever. This plugin may destroy your data, your hardware, your health and in the end, the whole universe.

Installation as usual via joomla backend installer. Don't forget to enable the plugin!

License is LGPL.

File Attachment:

File Name: mjconditionalcontent.zip
File Size: 2 KB
level420
13 years, 5 months ago
Ummmpf......

I've struggled with the file upload of kunena but had no success

Maybe some moderator can have a look at this?

Thank you.
level420
13 years, 5 months ago
I've tricked the upload mechanism with firefox and firebug.

Regards...
pasqualelaviano
12 years, 8 months ago
Very good that, but how do I make this tag work directly within a php page?

Example: mjcontent {type = "mobile"} <? Php echo $ product_name?> {/ Mjcontent}

Thanks
level420
12 years, 8 months ago
pasqualelaviano wrote:
Very good that, but how do I make this tag work directly within a php page?

Example: mjcontent {type = "mobile"} <? Php echo $ product_name?> {/ Mjcontent}

Thanks


The plugin just works if used in articles.

If you want to to use this in php (module, other plugin, etc.) please have a look into the source code of the plugin (file mjconditionalcontent.php).

 
$isMobile = defined('_MJ');
 
if($isMobile) {
// do something specific for mobile output
}
else {
// do something specific for non mobile output
}
 

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.