TYPO3 Reea Blog

This will be shown to users with no Flash or Javascript.

Versiune de mobile din TYPO3


########## MOBILE ################
config.linkVars = full

[useragent = *iPhone*] && [globalVar = GP:full<1] || [useragent = *iPod*] && [globalVar = GP:full<1] || [useragent = *Android*] && [globalVar = GP:full<1] || [useragent = *Opera Mini*] && [globalVar = GP:full<1] || [useragent = *BlackBerry*] && [globalVar = GP:full<1]

page.10.childTemplate = mobile

page.headerData.101 = HTML 
page.headerData.101.value (
<link href="fileadmin/templates/css/mobile.css" rel="stylesheet" type="text/css" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/> 
)
lib.fullVersion = TEXT
lib.fullVersion {
value = Full Version
typolink {
parameter.data = page:uid
addQueryString = 1
addQueryString.exclude = id
additionalParams = &full=1
}
}

[end]

Setare veriune mobile pentru TemplaVoila in Root


TCEFORM.tx_templavoila_tmplobj.rendertype.addItems.mobile = Mobile version

Versiunea cu root diferit și același domeniu


config.linkVars = full

[useragent = *iPhone*] && [globalVar = GP:full<1] || [useragent = *iPod*] && [globalVar = GP:full<1] || [useragent = *Opera Mini*] && [globalVar = GP:full<1] || [useragent = *BlackBerry*] && [globalVar = GP:full<1] || [useragent = *Android*] && [globalVar = GP:full<1]
	lib.logoM.stdWrap.typolink.parameter=214
	page.headerData.141 = HTML
	page.headerData.141.value (
	<link href="fileadmin/templates/css/mobile.css" rel="stylesheet" type="text/css" />
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
	)
	page.10.userFunc = tx_templavoila_pi1->main_page
	page.10.childTemplate = USERFUNC:user_mobile->getChildTemplate
	page.10.childTemplate.value = mobile
	page.includeCSS >
	page.includeCSS.file1 = fileadmin/templates/css/styleM.css

	lib.fullVersion = TEXT
	lib.fullVersion {
	value = Full Version
	typolink {
	parameter.data = page:uid
	addQueryString = 1
	addQueryString.exclude = id
	additionalParams = &full=1
		}
	}

	page.10.childTemplate = mobile
[end]

####redirect to other mobile tree####
[useragent = *iPhone*] && [globalVar = GP:full<1] && [treeLevel = 1] || [useragent = *iPod*] && [globalVar = GP:full<1] && [treeLevel = 1] || [useragent = *Opera Mini*] && [globalVar = GP:full<1] && [treeLevel = 1] || [useragent = *BlackBerry*] && [globalVar = GP:full<1] && [treeLevel = 1] || [useragent = *Android*] && [globalVar = GP:full<1] && [treeLevel = 1]
    config.additionalHeaders = Location: index.php?id=214
[end]

####redirect to Android tree####
	#[useragent = *Android*] && [globalVar = GP:full<1] && [treeLevel = 1]
	#config.additionalHeaders = Location: index.php?id=214
#[end]

###redirect from mobile to normal home page###
[PIDinRootline=205] && [globalVar = GP:full=1]
    config.additionalHeaders = Location: index.php?id=1&full=1
[end]
blog comments powered by Disqus

In aceasta sectiune

Scripturi folosite uzual pentru configurarea site-urilor. Pentru orice referinta noua, sau comentariu, se poate folosi zona de page coments a fiecarei pagini, sau puteti trimite un email la adresa calin@reea.net.

Premium Sponsor

TYPO3camp Mallorca 14/09/12-16/09/12