[Typo3] How does typeNum work?
Bill Stoltz
bstoltz81 at comcast.net
Thu Feb 3 19:25:07 CET 2005
I must not be asking the right questions. I don't seem to understand
how these different page types work.
I think I understand type=0. routines get the content from the DB and it
gets placed in certain sections of the HTML based on things like
"DOCUMENT BODY" or MENU 1, etc.
But for something like WAP, it seems to make a call to get all content,
but it does not get displayed. I assume there is a filter to remove
images or other things, but it looks like all content elements are
getting removed. I briefly looked at the script in
media/scripts/wapversionLib.inc but I must be missing something.
Can anyone explain how this works, or point me to the functions that are
help me figure this out?
I am stumped and can't figure out why I don't see the content for my wap
pages, when it works fine for normal pages.
Here is the TS I am using....
Constants
plugin.alt.wap *>*
plugin.alt.wap *{*
*}*
Setup
/## Set up page/type:/
alt_wap *>*
alt_wap *=* PAGE
alt_wap *{*
typeNum*=*97
config.disableAllHeaderCode *=* 1
config.additionalHeaders *=* Content-type: text/vnd.wap.wml
/## Includes the newsLib:/
includeLibs.alt_wap *=* media/scripts/wapversionLib.inc
/## Inserting the USER cObject for WAP/XML rendering/
10 *=* USER
10 *{*
userFunc *=* user_wapversion->main_wapversion
debug*=*0
preTitle *=* T3WAP
navLabels.prev *=* Prev
navLabels.next *=* Next
navLabels.up *=* Up
*}*
*}*
/## Setting up a testpage at type 197/
alt_wap_test *<* alt_wap
alt_wap_test *{*
typeNum*=*197
config.additionalHeaders *=*
10.debug *=* 1
*}*
/## If the browser is a WAP-device,/
*[device=wap]*
alt_wap.typeNum*=*0
*[global]*
Thanks,
Bill
More information about the TYPO3-english
mailing list