doc:appunti:linux:sa:mediawiki_1_30
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:linux:sa:mediawiki_1_30 [2018/02/09 11:32] – [MobileFrontend] niccolo | doc:appunti:linux:sa:mediawiki_1_30 [2018/02/09 12:48] (current) – [Dominio dedicato alla versione mobile] niccolo | ||
---|---|---|---|
Line 13: | Line 13: | ||
wfLoadExtension( ' | wfLoadExtension( ' | ||
$wgMFAutodetectMobileView = true; | $wgMFAutodetectMobileView = true; | ||
+ | // Hide switch-language button in Minerva skin | ||
$wgMinervaAlwaysShowLanguageButton = false; | $wgMinervaAlwaysShowLanguageButton = false; | ||
</ | </ | ||
Line 34: | Line 35: | ||
==== Dominio dedicato alla versione mobile ==== | ==== Dominio dedicato alla versione mobile ==== | ||
- | È abbastanza comune | + | È pratica diffusa |
<code php> | <code php> | ||
Line 44: | Line 45: | ||
Considerato che l' | Considerato che l' | ||
- | FIXME Eventualmente | + | Un **valido motivo per attivare |
+ | |||
+ | < | ||
+ | < | ||
+ | SSLEngine on | ||
+ | ServerName www.m.domain.tld | ||
+ | ... | ||
+ | RequestHeader set X-Subdomain "1" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Il MobileFrontend va configurato con il solo **$wgMFAutodetectMobileView** e **$wgMFMobileHeader**, lasciando disattivo il **$wgMobileUrlTemplate**: | ||
+ | |||
+ | <code php> | ||
+ | // Mobile device detection. | ||
+ | $wgMFAutodetectMobileView = true; | ||
+ | // MobileFrontend will ignore the requested domain name. | ||
+ | // | ||
+ | // Requests with this header, will be forced as mobile. | ||
+ | $wgMFMobileHeader = ' | ||
+ | </ | ||
===== Cache ===== | ===== Cache ===== | ||
Sembra che con MediaWiki 1.30 il meccanismo di cache sia compatibile anche con l' | Sembra che con MediaWiki 1.30 il meccanismo di cache sia compatibile anche con l' | ||
doc/appunti/linux/sa/mediawiki_1_30.1518172326.txt.gz · Last modified: 2018/02/09 11:32 by niccolo