[TYPO3-english] TYPO3 mobile webpages, WURFL

Victor Livakovsky v-tyok at mail.ru
Fri Apr 10 14:23:53 CEST 2009


Hi, Dmitry.
>> I also tried to comment the condition [userFunc = user_isMobile] - so,
>> the mobile template should be applied at 'normal' browser, but nothing
>> happened.
>>     
>
> How does your page declaration look like?
>
> page = PAGE
> page.10 ......    <--------- what is here

Here is the full definition:
page = PAGE
page.typeNum = 0

page.headerData.5 = TEXT
page.headerData.5.field = subtitle
page.headerData.5.wrap = <title>Berlin -&nbsp;|</title>

[userFunc = user_isMobile]
plugin.tx_templavoila_pi1.childTemplate = 
USERFUNC:user_mobile->getChildTemplate
plugin.tx_templavoila_pi1.childTemplate.value = mobile

config {
   admPanel = 0
   absRefPrefix = /
   disablePrefixComment = 1
   inlineStylesToTempFile = 0
   pageTitleFirst = 1
   removeDefaultJS = 1
}

plugin.tx_cssstyledcontent._CSS_DEFAULT_STYLE >
[global]

page.10 < plugin.tx_templavoila_pi1
page.10.userFunc = tx_templavoila_pi1->main_page


Also tried this:
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page

But result was the same.


More information about the TYPO3-english mailing list