Community @ The Turning Gate

Support community for TTG plugins and products.

You are not logged in.

#1 2016-12-06 21:19:16

angel
Member
From: Israel
Registered: 2013-06-18
Posts: 25
Website

Is there a crack / fix for alternative content.

I am using TTG CE4 Publisher to upload content for our Contact Page. Is there a way to display alternate content for desktop and mobile viewers?

Offline

#2 2016-12-06 23:39:25

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 12,021
Website

Re: Is there a crack / fix for alternative content.

not via Publisher. But you could use phplugins to insert content to only mobile devices using the CE4-MOBILE G_STYLE identifier along with G_SLUG to target specific albums

http://ce4.theturninggate.net/docs/doku … e4_engines

http://ce4.theturninggate.net/docs/doku … bility_api

http://ce4.theturninggate.net/docs/doku … album_sets


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight test site

Offline

#3 2016-12-07 10:52:42

Matthew
Administrator
From: Seoul, South Korea
Registered: 2012-09-24
Posts: 4,519
Website

Re: Is there a crack / fix for alternative content.

In the copy area, you could do something like:

<div id="is-desktop">
	<p>I only display on desktop.</p>
</div>

<div id="is-mobile">
	<p>I only display on mobile.</p>
</div>

In custom CSS, then:

#is-mobile { display: none; }
@media screen and ( max-width: 920px ) {
	#is-desktop {display: none; }
	#is-mobile { display: block; }
}

Campagna Pictures, http://campagnapictures.com
The Turning Gate, http://theturninggate.net

Offline

#4 2016-12-09 05:10:47

angel
Member
From: Israel
Registered: 2013-06-18
Posts: 25
Website

Re: Is there a crack / fix for alternative content.

Thank you Matthew.

I appreciate you providing an easy and effective solution.

It works!

Offline

#5 2016-12-09 14:31:46

Matthew
Administrator
From: Seoul, South Korea
Registered: 2012-09-24
Posts: 4,519
Website

Re: Is there a crack / fix for alternative content.

Glad to hear. big_smile


Campagna Pictures, http://campagnapictures.com
The Turning Gate, http://theturninggate.net

Offline

Board footer

Powered by FluxBB